mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复可能的摄像机位置为空
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user