mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
11 lines
626 B
Diff
11 lines
626 B
Diff
--- a/net/minecraft/world/item/ItemPotion.java
|
|
+++ b/net/minecraft/world/item/ItemPotion.java
|
|
@@ -62,7 +62,7 @@
|
|
if (((MobEffectList) mobeffect.getEffect().value()).isInstantenous()) {
|
|
((MobEffectList) mobeffect.getEffect().value()).applyInstantenousEffect(entityhuman, entityhuman, entityliving, mobeffect.getAmplifier(), 1.0D);
|
|
} else {
|
|
- entityliving.addEffect(mobeffect);
|
|
+ entityliving.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit
|
|
}
|
|
|
|
});
|