aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle.kts2
-rw-r--r--src/main/java/de/torui/coflsky/CoflSky.java2
-rw-r--r--src/main/java/de/torui/coflsky/handlers/EventHandler.java12
3 files changed, 8 insertions, 8 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index b1e378c..6012b51 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -7,7 +7,7 @@ plugins {
}
group = "de.torui.coflmod"
-version = "1.4.3-alpha"
+version = "1.4.4-alpha"
// Toolchains:
java {
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);
}
}