2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityWitch.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityWitch.java
|
2024-06-14 01:05:00 +10:00
|
|
|
@@ -125,7 +125,7 @@
|
2024-04-24 01:15:00 +10:00
|
|
|
PotionContents potioncontents = (PotionContents) itemstack.get(DataComponents.POTION_CONTENTS);
|
2018-07-20 16:04:37 +10:00
|
|
|
|
2024-04-24 01:15:00 +10:00
|
|
|
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
|
2018-07-20 16:04:37 +10:00
|
|
|
}
|
2024-04-24 01:15:00 +10:00
|
|
|
|
|
|
|
this.gameEvent(GameEvent.DRINK);
|