mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +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
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue