mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
SPIGOT-4304: Turtle helmet overrides water breathing potion
This commit is contained in:
parent
3418f8d7a1
commit
1bc24337d1
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue