From 521fc8d080c629c7482b02af562c6bd2d77a0c1d Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Sun, 29 Jun 2025 18:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=90=E5=BC=B9=E7=B1=BB?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/projectile/ProjectileEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/ProjectileEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/ProjectileEntity.java index b188a0351..a4a0fd6e3 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/ProjectileEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/ProjectileEntity.java @@ -355,7 +355,7 @@ public class ProjectileEntity extends Projectile implements IEntityWithComplexSp this.legShot = tag.getFloat("LegShot"); this.bypassArmorRate = tag.getFloat("BypassArmorRate"); this.undeadMultiple = tag.getFloat("UndeadMultiple"); - this.illagerMultiple = tag.getFloat("illagerMultiple"); + this.illagerMultiple = tag.getFloat("IllagerMultiple"); this.knockback = tag.getFloat("Knockback"); this.beast = tag.getBoolean("Beast"); @@ -374,7 +374,7 @@ public class ProjectileEntity extends Projectile implements IEntityWithComplexSp tag.putFloat("LegShot", this.legShot); tag.putFloat("BypassArmorRate", this.bypassArmorRate); tag.putFloat("UndeadMultiple", this.undeadMultiple); - tag.putFloat("illagerMultiple", this.illagerMultiple); + tag.putFloat("IllagerMultiple", this.illagerMultiple); tag.putFloat("Knockback", this.knockback); tag.putBoolean("Beast", this.beast); @@ -386,7 +386,7 @@ public class ProjectileEntity extends Projectile implements IEntityWithComplexSp } @Override - protected void onHit(@NotNull HitResult result) { + protected void onHit(@Nullable HitResult result) { if (result instanceof BlockHitResult blockHitResult) { if (blockHitResult.getType() == HitResult.Type.MISS) { return;