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

修复可能的摄像机位置为空

This commit is contained in:
XiaoMoMi
2025-12-04 04:50:09 +08:00
parent 14b0c71147
commit 26862498dc

View File

@@ -602,6 +602,9 @@ public class BukkitServerPlayer extends Player {
@Override
public void entityCullingTick() {
this.culling.restoreTokenOnTick();
if (this.firstPersonCameraVec3 == null || this.thirdPersonCameraVec3 == null) {
return;
}
boolean useRayTracing = Config.entityCullingRayTracing();
if (this.enableEntityCulling) {
for (VirtualCullableObject cullableObject : this.trackedBlockEntityRenderers.values()) {