SPIGOT-4304: Turtle helmet overrides water breathing potion

This commit is contained in:
md_5 2018-08-24 20:56:25 +10:00
parent 3418f8d7a1
commit 1bc24337d1

View file

@ -270,11 +270,10 @@
this.a(mobeffect); this.a(mobeffect);
return true; return true;
- } else if (mobeffect1.a(mobeffect)) { - } else if (mobeffect1.a(mobeffect)) {
- this.a(mobeffect1, true);
+ // CraftBukkit start + // CraftBukkit start
+ } else if (event.isOverride()) { + } else if (event.isOverride()) {
+ this.effects.put(mobeffect.getMobEffect(), mobeffect); + mobeffect1.a(mobeffect);
+ this.a(mobeffect, true); this.a(mobeffect1, true);
+ // CraftBukkit end + // CraftBukkit end
return true; return true;
} else { } else {