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; }