Parse as double instead of int
Some checks are pending
Build plugin / build (push) Waiting to run

This commit is contained in:
2vb 2024-07-05 20:22:50 -07:00
parent efca505643
commit f2c792833a

View File

@ -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;
}