Archiviert
13
0

SPIGOT-4304: Turtle helmet overrides water breathing potion

Dieser Commit ist enthalten in:
md_5 2018-08-24 20:56:25 +10:00
Ursprung 3418f8d7a1
Commit 1bc24337d1

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 {