diff --git a/assets/mod.hjson b/assets/mod.hjson index d176a45..91ee95a 100644 --- a/assets/mod.hjson +++ b/assets/mod.hjson @@ -3,7 +3,7 @@ name: "floodcompat" author: "io community" main: "floodcompat.FloodCompat" description: "Reduces desyncs & applies flood changes on join." -version: "1.2" +version: "1.2.1" minGameVersion: 146 java: true hidden: true \ No newline at end of file diff --git a/src/floodcompat/FloodCompat.kt b/src/floodcompat/FloodCompat.kt index 02b30f5..60d3c87 100644 --- a/src/floodcompat/FloodCompat.kt +++ b/src/floodcompat/FloodCompat.kt @@ -41,7 +41,7 @@ class FloodCompat : Mod() { netClient.addPacketHandler("anticreep") { string: String -> if (!applied) return@addPacketHandler // This can eat some anticreep packets right when the player joins but its not a big deal - val vars = string.split(":", limit = 3) + val vars = string.split(":", limit = 4) val pos = Strings.parseInt(vars[0]) val rad = Strings.parseInt(vars[1])