@@ -1,11 +1,11 @@
|
||||
--- a/net/minecraft/world/entity/monster/EntityWitch.java
|
||||
+++ b/net/minecraft/world/entity/monster/EntityWitch.java
|
||||
@@ -134,7 +134,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
MobEffect mobeffect = (MobEffect) iterator.next();
|
||||
@@ -124,7 +124,7 @@
|
||||
PotionContents potioncontents = (PotionContents) itemstack.get(DataComponents.POTION_CONTENTS);
|
||||
|
||||
- this.addEffect(new MobEffect(mobeffect));
|
||||
+ this.addEffect(new MobEffect(mobeffect), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
||||
}
|
||||
}
|
||||
if (itemstack.is(Items.POTION) && potioncontents != null) {
|
||||
- potioncontents.forEachEffect(this::addEffect);
|
||||
+ potioncontents.forEachEffect((effect) -> this.addEffect(effect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK)); // CraftBukkit
|
||||
}
|
||||
|
||||
this.gameEvent(GameEvent.DRINK);
|
||||
|
||||
Reference in New Issue
Block a user