diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/torui/coflsky/CoflSky.java | 2 | ||||
-rw-r--r-- | src/main/java/de/torui/coflsky/handlers/EventHandler.java | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSky.java b/src/main/java/de/torui/coflsky/CoflSky.java index 0127859..7eba195 100644 --- a/src/main/java/de/torui/coflsky/CoflSky.java +++ b/src/main/java/de/torui/coflsky/CoflSky.java @@ -29,7 +29,7 @@ import net.minecraftforge.fml.relauncher.Side; public class CoflSky { public static final String MODID = "CoflSky"; - public static final String VERSION = "1.4.3-Alpha"; + public static final String VERSION = "1.4.4-Alpha"; public static WSClientWrapper Wrapper; public static KeyBinding[] keyBindings; diff --git a/src/main/java/de/torui/coflsky/handlers/EventHandler.java b/src/main/java/de/torui/coflsky/handlers/EventHandler.java index ca3f640..ad25159 100644 --- a/src/main/java/de/torui/coflsky/handlers/EventHandler.java +++ b/src/main/java/de/torui/coflsky/handlers/EventHandler.java @@ -17,14 +17,14 @@ import net.minecraft.util.EnumChatFormatting; import java.util.*; import static de.torui.coflsky.CoflSky.config; -import static java.lang.Integer.parseInt; +import static java.lang.Long.parseLong; public class EventHandler { public static boolean isInSkyblock = false; public static boolean isInTheCatacombs = false; private static long purse = 0; - private static int bits = 0; + private static long bits = 0; private static String location = ""; private static String server = ""; @@ -172,7 +172,7 @@ public class EventHandler { if (line.contains("purse") || line.contains("piggy")) { long purse_ = 0; try { - purse_ = parseInt(line.split(" ")[1].replace(",", "")); + purse_ = parseLong(line.split(" ")[1].replace(",", "")); } catch (NumberFormatException e) { e.printStackTrace(); } @@ -182,15 +182,15 @@ public class EventHandler { CoflSky.Wrapper.SendMessage(data); } } else if (line.contains("bits")) { - int bits_ = 0; + long bits_ = 0; try { - bits_ = parseInt(line.split(" ")[1].replace(",", "")); + bits_ = parseLong(line.split(" ")[1].replace(",", "")); } catch (NumberFormatException e) { e.printStackTrace(); } if (bits != bits_) { bits = bits_; - Command<Integer> data = new Command<>(CommandType.updateBits, bits); + Command<Long> data = new Command<>(CommandType.updateBits, bits); CoflSky.Wrapper.SendMessage(data); } } |