Skip to content

Commit

Permalink
Do not render removed BEs
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Oct 31, 2023
1 parent b0d152b commit 088da77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void renderTileEntities(MatrixStack matrices, BufferBuilderStorage buffer
double z = cameraPos.getZ();

for (BlockEntity blockEntity : this.chunkRenderManager.getVisibleBlockEntities()) {
if(!checkBEVisibility(blockEntity))
if(blockEntity.isRemoved() || !checkBEVisibility(blockEntity))
continue;
BlockPos pos = blockEntity.getPos();

Expand Down

0 comments on commit 088da77

Please sign in to comment.