From f2c792833a631f5115ded32e5d1e5d12f05136bf Mon Sep 17 00:00:00 2001 From: 2vb <2vb@protonmail.com> Date: Fri, 5 Jul 2024 20:22:50 -0700 Subject: [PATCH] Parse as double instead of int --- src/main/java/xyz/twovb/sgm/games/impl/capturethebrick/CTB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/twovb/sgm/games/impl/capturethebrick/CTB.java b/src/main/java/xyz/twovb/sgm/games/impl/capturethebrick/CTB.java index 025d491..47aaa8a 100644 --- a/src/main/java/xyz/twovb/sgm/games/impl/capturethebrick/CTB.java +++ b/src/main/java/xyz/twovb/sgm/games/impl/capturethebrick/CTB.java @@ -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; }