diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/WitherRoseBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/WitherRoseBlock.java.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/WitherRoseBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/WitherRoseBlock.java.patch new file mode 100644 index 0000000000..894b9d58f3 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/WitherRoseBlock.java.patch @@ -0,0 +1,13 @@ +--- a/net/minecraft/world/level/block/WitherRoseBlock.java ++++ b/net/minecraft/world/level/block/WitherRoseBlock.java +@@ -69,8 +65,8 @@ + if (entity instanceof LivingEntity) { + LivingEntity livingentity = (LivingEntity) entity; + +- if (!livingentity.isInvulnerableTo(level.damageSources().wither())) { +- livingentity.addEffect(new MobEffectInstance(MobEffects.WITHER, 40)); ++ if (!entityliving.isInvulnerableTo(level.damageSources().wither())) { ++ entityliving.addEffect(new MobEffectInstance(MobEffects.WITHER, 40), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.WITHER_ROSE); // CraftBukkit + } + } + |