This commit is contained in:
parent
efca505643
commit
f2c792833a
|
@ -320,7 +320,7 @@ public class CTB implements Minigame {
|
||||||
private Location parseString(String string) {
|
private Location parseString(String string) {
|
||||||
String[] coords = string.trim().split(",");
|
String[] coords = string.trim().split(",");
|
||||||
if (coords.length == 3) {
|
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 {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user