2018-07-20 08:04:37 +02:00
|
|
|
--- a/net/minecraft/server/ItemPotion.java
|
|
|
|
+++ b/net/minecraft/server/ItemPotion.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -31,7 +31,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|