This commit is contained in:
Sollace 2023-07-07 12:57:38 +01:00
parent 0077d50fa7
commit 283555c45b
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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;
} }
} }