1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-03-05 01:31:28 +01:00
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);
if (r != null) {
((FallingBlockBehaviour.Positioned)blockEntity).setPos(e.getBlockPos());
blockEntity.setWorld(e.getWorld());
matrices.push();
BlockState state = blockEntity.getCachedState();
@ -213,6 +214,7 @@ public class WorldRenderDelegate {
r.render(blockEntity, 1, matrices, vertexConsumers, light, OverlayTexture.DEFAULT_UV);
matrices.pop();
blockEntity.setWorld(null);
return;
}
}