mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 18:33:20 +08:00
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:
parent
9cb9fe099c
commit
164baa7251
@ -67,8 +67,9 @@ public class MapMarksManager extends BasePlayerManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void teleport(Player player, MapMark mapMark) {
|
private void teleport(Player player, MapMark mapMark) {
|
||||||
float y; try {
|
float y;
|
||||||
y = (float)Integer.parseInt(mapMark.getName());
|
try {
|
||||||
|
y = Float.parseFloat(mapMark.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
y = 300;
|
y = 300;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user