From aa14242b54937ecea550b55af7d51164004e95a2 Mon Sep 17 00:00:00 2001 From: Julian Krings Date: Sun, 7 Sep 2025 16:50:23 +0200 Subject: [PATCH] another mantle fix --- core/src/main/java/com/volmit/iris/util/mantle/MantleChunk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/volmit/iris/util/mantle/MantleChunk.java b/core/src/main/java/com/volmit/iris/util/mantle/MantleChunk.java index 01153403c..7208b6fb9 100644 --- a/core/src/main/java/com/volmit/iris/util/mantle/MantleChunk.java +++ b/core/src/main/java/com/volmit/iris/util/mantle/MantleChunk.java @@ -266,7 +266,7 @@ public class MantleChunk { dos.writeByte(x); dos.writeByte(z); dos.writeByte(sections.length()); - Varint.writeUnsignedVarInt(Math.ceilDiv(flags.length(), Byte.SIZE), dos); + Varint.writeUnsignedVarInt(flags.length(), dos); int count = flags.length(); for (int i = 0; i < count;) {