mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 10:06:16 +00:00
12 lines
702 B
Diff
12 lines
702 B
Diff
--- a/net/minecraft/world/level/block/BlockWitherRose.java
|
|
+++ b/net/minecraft/world/level/block/BlockWitherRose.java
|
|
@@ -66,7 +66,7 @@
|
|
if (world instanceof WorldServer worldserver) {
|
|
if (world.getDifficulty() != EnumDifficulty.PEACEFUL && entity instanceof EntityLiving entityliving) {
|
|
if (!entityliving.isInvulnerableTo(worldserver, world.damageSources().wither())) {
|
|
- entityliving.addEffect(new MobEffect(MobEffects.WITHER, 40));
|
|
+ entityliving.addEffect(new MobEffect(MobEffects.WITHER, 40), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.WITHER_ROSE); // CraftBukkit
|
|
}
|
|
}
|
|
}
|