Commit 164baa72 authored by Magix's avatar Magix Committed by GitHub
Browse files

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


Co-authored-by: default avatarLuke H-W <Birdulon@users.noreply.github.com>
parent 9cb9fe09
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment