Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
2cdfea1f
Commit
2cdfea1f
authored
Jun 24, 2022
by
GanyusLeftHorn
Committed by
Melledy
Jun 24, 2022
Browse files
Move worldlevel for World to Player::setWorldLevel
parent
7ffe1070
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
2cdfea1f
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment