2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/ItemPotion.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemPotion.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -62,7 +62,7 @@
|
|
|
|
if (((MobEffectList) mobeffect.getEffect().value()).isInstantenous()) {
|
|
|
|
((MobEffectList) mobeffect.getEffect().value()).applyInstantenousEffect(entityhuman, entityhuman, entityliving, mobeffect.getAmplifier(), 1.0D);
|
2018-07-20 08:04:37 +02:00
|
|
|
} else {
|
2024-04-23 17:15:00 +02:00
|
|
|
- entityliving.addEffect(mobeffect);
|
|
|
|
+ entityliving.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
2024-04-23 17:15:00 +02:00
|
|
|
|
|
|
|
});
|