mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:32:53 +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) {
|
||||
float y; try {
|
||||
y = (float)Integer.parseInt(mapMark.getName());
|
||||
float y;
|
||||
try {
|
||||
y = Float.parseFloat(mapMark.getName());
|
||||
} catch (Exception e) {
|
||||
y = 300;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user