mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
814c742554
Discussion ongoing in PR #449
12 lines
599 B
Diff
12 lines
599 B
Diff
--- a/net/minecraft/server/ItemPotion.java
|
|
+++ b/net/minecraft/server/ItemPotion.java
|
|
@@ -30,7 +30,7 @@
|
|
if (mobeffect.getMobEffect().isInstant()) {
|
|
mobeffect.getMobEffect().applyInstantEffect(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
|
|
}
|
|
}
|
|
}
|