mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 05:04:20 +00:00
Move worldlevel for World to Player::setWorldLevel
This commit is contained in:
parent
7ffe107026
commit
2cdfea1fb2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user