Commit 2cdfea1f authored by GanyusLeftHorn's avatar GanyusLeftHorn Committed by Melledy
Browse files

Move worldlevel for World to Player::setWorldLevel

parent 7ffe1070
...@@ -447,6 +447,8 @@ public class Player { ...@@ -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 { ...@@ -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);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment