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