SPIGOT-7955: Failure teleporting players between worlds using Player#teleport() when player has attribute modifiers

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-11-12 20:51:01 +11:00
parent a768ea0ddf
commit ac56ea8d83

View file

@ -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();