mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-05 15:23:05 +08:00
Move worldlevel for World to Player::setWorldLevel
This commit is contained in:
parent
ed90d0559d
commit
e117bfac91
@ -447,6 +447,8 @@ public class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setWorldLevel(int level) {
|
public void setWorldLevel(int level) {
|
||||||
|
this.getWorld().setWorldLevel(newWorldLevel);
|
||||||
|
|
||||||
this.setProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL, level);
|
this.setProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL, level);
|
||||||
this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_WORLD_LEVEL));
|
this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_WORLD_LEVEL));
|
||||||
|
|
||||||
@ -545,7 +547,6 @@ public class Player {
|
|||||||
0;
|
0;
|
||||||
|
|
||||||
if (newWorldLevel != currentWorldLevel) {
|
if (newWorldLevel != currentWorldLevel) {
|
||||||
this.getWorld().setWorldLevel(newWorldLevel);
|
|
||||||
this.setWorldLevel(newWorldLevel);
|
this.setWorldLevel(newWorldLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user