Update src/main/java/emu/grasscutter/game/managers/mapmark/MapMarksManager.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
This commit is contained in:
Magix 2022-08-04 13:44:56 -04:00 committed by GitHub
parent 9cb9fe099c
commit 164baa7251

View File

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