13
0
geforkt von Mirrors/Paper

SPIGOT-4304: Turtle helmet overrides water breathing potion

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-08-24 20:56:25 +10:00
Ursprung 90eefedd86
Commit 61903e962a

Datei anzeigen

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