mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
SPIGOT-7955: Failure teleporting players between worlds using Player#teleport() when player has attribute modifiers
This commit is contained in:
parent
2e09c7a362
commit
5bc0a094b3
1 changed files with 9 additions and 0 deletions
|
@ -999,6 +999,15 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -1677,7 +2081,7 @@
|
||||
this.onUpdateAbilities();
|
||||
if (flag) {
|
||||
this.getAttributes().assignBaseValues(entityplayer.getAttributes());
|
||||
- this.getAttributes().assignPermanentModifiers(entityplayer.getAttributes());
|
||||
+ // this.getAttributes().assignPermanentModifiers(entityplayer.getAttributes()); // CraftBukkit
|
||||
this.setHealth(entityplayer.getHealth());
|
||||
this.foodData = entityplayer.foodData;
|
||||
Iterator iterator = entityplayer.getActiveEffects().iterator();
|
||||
@@ -1685,7 +2089,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
MobEffect mobeffect = (MobEffect) iterator.next();
|
||||
|
|
Loading…
Add table
Reference in a new issue