From 15621dbd09cb7e4ad30f46a9947b16594f043202 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Sat, 1 Feb 2025 17:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E8=AF=B1=E5=BC=B9=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E8=A2=AB=E6=94=BB=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/projectile/FlareDecoyEntity.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FlareDecoyEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FlareDecoyEntity.java index b4c7ed8d7..fbff340a9 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FlareDecoyEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/projectile/FlareDecoyEntity.java @@ -8,7 +8,6 @@ import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.game.ClientGamePacketListener; import net.minecraft.server.level.ServerLevel; import net.minecraft.util.Mth; -import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.LivingEntity; @@ -36,12 +35,6 @@ public class FlareDecoyEntity extends Entity { return NetworkHooks.getEntitySpawningPacket(this); } - @Override - public boolean hurt(DamageSource source, float amount) { - this.discard(); - return super.hurt(source, amount); - } - @Override protected void readAdditionalSaveData(CompoundTag compoundTag) { @@ -52,11 +45,6 @@ public class FlareDecoyEntity extends Entity { } - @Override - public boolean isPickable() { - return !this.isRemoved(); - } - @Override protected void defineSynchedData() { }