13
0
geforkt von Mirrors/Paper

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

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2024-11-12 20:51:01 +11:00
Ursprung a768ea0ddf
Commit ac56ea8d83

Datei anzeigen

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