9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

Update CEChunk.java

This commit is contained in:
XiaoMoMi
2025-11-30 00:49:37 +08:00
parent d00f4789c4
commit e8ef466fce

View File

@@ -187,7 +187,10 @@ public class CEChunk {
// 如果启用实体剔除,那么只添加记录
if (Config.enableEntityCulling()) {
for (Player player : trackedBy) {
player.addTrackedBlockEntity(pos, renderer);
VirtualCullableObject trackedBlockEntity = player.addTrackedBlockEntity(pos, renderer);
if (trackedBlockEntity != null && trackedBlockEntity.isShown()) {
trackedBlockEntity.setShown(player, false);
}
}
}
// 否则直接显示