mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-4304: Turtle helmet overrides water breathing potion
By: md_5 <git@md-5.net>
This commit is contained in:
parent
90eefedd86
commit
61903e962a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user