@@ -0,0 +1,20 @@
|
||||
--- a/net/minecraft/world/item/alchemy/PotionContents.java
|
||||
+++ b/net/minecraft/world/item/alchemy/PotionContents.java
|
||||
@@ -93,7 +93,7 @@
|
||||
}
|
||||
|
||||
public PotionContents withEffectAdded(MobEffect mobeffect) {
|
||||
- return new PotionContents(this.potion, this.customColor, SystemUtils.copyAndAdd(this.customEffects, (Object) mobeffect), this.customName);
|
||||
+ return new PotionContents(this.potion, this.customColor, SystemUtils.copyAndAdd(this.customEffects, mobeffect), this.customName); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
@@ -176,7 +176,7 @@
|
||||
if (((MobEffectList) mobeffect.getEffect().value()).isInstantenous()) {
|
||||
((MobEffectList) mobeffect.getEffect().value()).applyInstantenousEffect(worldserver, entityhuman2, entityhuman2, entityliving, mobeffect.getAmplifier(), 1.0D);
|
||||
} else {
|
||||
- entityliving.addEffect(mobeffect);
|
||||
+ entityliving.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user