From 3492be3ce54514fc582fdc4585efe0dcf0805790 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Thu, 20 Mar 2025 17:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E7=9A=84=E5=90=8C=E6=AD=A5=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/projectile/JavelinMissileEntity.java | 12 +++++------- .../entity/projectile/RpgRocketEntity.java | 5 +++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/JavelinMissileEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/JavelinMissileEntity.java index cbc3626f5..8e8273ad8 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/JavelinMissileEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/JavelinMissileEntity.java @@ -323,13 +323,6 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo return 0F; } - public String getSyncedAnimation() { - return null; - } - - public void setAnimation(String animation) { - } - @Override public void registerControllers(AnimatableManager.ControllerRegistrar data) { data.add(new AnimationController<>(this, "movement", 0, this::movementPredicate)); @@ -339,4 +332,9 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo public AnimatableInstanceCache getAnimatableInstanceCache() { return this.cache; } + + @Override + public boolean shouldSyncMotion() { + return true; + } } diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/RpgRocketEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/RpgRocketEntity.java index 811030e07..1e44ff30e 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/RpgRocketEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/RpgRocketEntity.java @@ -196,4 +196,9 @@ public class RpgRocketEntity extends FastThrowableProjectile implements GeoEntit public AnimatableInstanceCache getAnimatableInstanceCache() { return this.cache; } + + @Override + public boolean shouldSyncMotion() { + return true; + } }