mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 03:26:44 +01:00
Fix #130
This commit is contained in:
parent
0077d50fa7
commit
283555c45b
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,7 @@ public class WorldRenderDelegate {
|
||||||
BlockEntityRenderer<BlockEntity> r = MinecraftClient.getInstance().getBlockEntityRenderDispatcher().get(blockEntity);
|
BlockEntityRenderer<BlockEntity> r = MinecraftClient.getInstance().getBlockEntityRenderDispatcher().get(blockEntity);
|
||||||
if (r != null) {
|
if (r != null) {
|
||||||
((FallingBlockBehaviour.Positioned)blockEntity).setPos(e.getBlockPos());
|
((FallingBlockBehaviour.Positioned)blockEntity).setPos(e.getBlockPos());
|
||||||
|
blockEntity.setWorld(e.getWorld());
|
||||||
matrices.push();
|
matrices.push();
|
||||||
|
|
||||||
BlockState state = blockEntity.getCachedState();
|
BlockState state = blockEntity.getCachedState();
|
||||||
|
@ -213,6 +214,7 @@ public class WorldRenderDelegate {
|
||||||
r.render(blockEntity, 1, matrices, vertexConsumers, light, OverlayTexture.DEFAULT_UV);
|
r.render(blockEntity, 1, matrices, vertexConsumers, light, OverlayTexture.DEFAULT_UV);
|
||||||
|
|
||||||
matrices.pop();
|
matrices.pop();
|
||||||
|
blockEntity.setWorld(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue