From 082300754c642ad218f9c38b5d56437a75b6ebf9 Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Wed, 2 Apr 2025 16:47:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=87=86=E7=A1=AE=E5=9C=B0=E9=A2=84?= =?UTF-8?q?=E6=B5=8B=E7=82=AE=E5=BC=B9=E8=BF=90=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/projectile/FastThrowableProjectile.java | 3 --- .../com/atsuishio/superbwarfare/tools/ChunkLoadTool.java | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FastThrowableProjectile.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FastThrowableProjectile.java index a540101e2..0a0abcaf7 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FastThrowableProjectile.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FastThrowableProjectile.java @@ -48,9 +48,6 @@ public abstract class FastThrowableProjectile extends ThrowableItemProjectile im // 重新应用重力 this.applyGravity(); - // - System.out.println(this.getDeltaMovement()); - // 同步动量 this.syncMotion(); } diff --git a/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java b/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java index 6bc553f57..5ac440a22 100644 --- a/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java +++ b/src/main/java/com/atsuishio/superbwarfare/tools/ChunkLoadTool.java @@ -17,9 +17,8 @@ public class ChunkLoadTool { var x = entity.position().x; var z = entity.position().z; - float f = entity.isInWater() ? 0.8F : 0.99F; - var nextX = x + entity.getDeltaMovement().x * f; - var nextZ = z + entity.getDeltaMovement().z * f; + var nextX = x + entity.getDeltaMovement().x; + var nextZ = z + entity.getDeltaMovement().z; // 加载当前区块和下一tick会进入的区块 var newChunks = new HashSet();