Skip to content

Commit b62bb87

Browse files
committed
Copy the effect before applying it
1 parent c6f6564 commit b62bb87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

potion/type/AbstractPotionType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public ItemStack remove(ItemStack stack)
215215
@Override
216216
public void apply(EntityLivingBase target)
217217
{
218-
this.apply_do(target, this.getEffect());
218+
PotionEffect pe = new PotionEffect(this.getEffect());
219+
this.apply_do(target, pe);
219220
}
220221

221222
@Override

0 commit comments

Comments
 (0)