mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
11 lines
611 B
Diff
11 lines
611 B
Diff
--- a/net/minecraft/world/item/ItemPotion.java
|
|
+++ b/net/minecraft/world/item/ItemPotion.java
|
|
@@ -63,7 +63,7 @@
|
|
if (mobeffect.getEffect().isInstantenous()) {
|
|
mobeffect.getEffect().applyInstantenousEffect(entityhuman, entityhuman, entityliving, mobeffect.getAmplifier(), 1.0D);
|
|
} else {
|
|
- entityliving.addEffect(new MobEffect(mobeffect));
|
|
+ entityliving.addEffect(new MobEffect(mobeffect), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit
|
|
}
|
|
}
|
|
}
|