Skip to content

Commit

Permalink
Update src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksMa…
Browse files Browse the repository at this point in the history
…nager.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
  • Loading branch information
KingRainbow44 and Birdulon authored Aug 4, 2022
1 parent 9cb9fe0 commit 164baa7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public void addMapMark(MapMark mapMark) {
}

private void teleport(Player player, MapMark mapMark) {
float y; try {
y = (float)Integer.parseInt(mapMark.getName());
float y;
try {
y = Float.parseFloat(mapMark.getName());
} catch (Exception e) {
y = 300;
}
Expand Down

0 comments on commit 164baa7

Please sign in to comment.