Move worldlevel for World to Player::setWorldLevel

This commit is contained in:
GanyusLeftHorn 2022-06-24 11:21:16 -07:00 committed by Melledy
parent 7ffe107026
commit 2cdfea1fb2

View File

@ -447,6 +447,8 @@ public class Player {
}
public void setWorldLevel(int level) {
this.getWorld().setWorldLevel(newWorldLevel);
this.setProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL, level);
this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_WORLD_LEVEL));
@ -545,7 +547,6 @@ public class Player {
0;
if (newWorldLevel != currentWorldLevel) {
this.getWorld().setWorldLevel(newWorldLevel);
this.setWorldLevel(newWorldLevel);
}
}