This commit is contained in:
parent
efca505643
commit
f2c792833a
|
@ -320,7 +320,7 @@ public class CTB implements Minigame {
|
|||
private Location parseString(String string) {
|
||||
String[] coords = string.trim().split(",");
|
||||
if (coords.length == 3) {
|
||||
return new Location(gameWorld, Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]));
|
||||
return new Location(gameWorld, Double.parseDouble(coords[0]), Double.parseDouble(coords[1]), Double.parseDouble(coords[2]));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user