From 164baa7251dcdc709226003fd377b1875de245f4 Mon Sep 17 00:00:00 2001 From: Magix <27646710+KingRainbow44@users.noreply.github.com> Date: Thu, 4 Aug 2022 13:44:56 -0400 Subject: [PATCH] Update src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java Co-authored-by: Luke H-W --- .../grasscutter/game/managers/mapmark/MapMarksManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java b/src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java index 23f9afd4d..a40fbaaa6 100644 --- a/src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java +++ b/src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java @@ -67,8 +67,9 @@ public class MapMarksManager extends BasePlayerManager { } 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; }