diff --git a/pom.xml b/pom.xml index ce181978..a526cd73 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.lishid orebfuscator - 4.0.2-SNAPSHOT + 4.0.3-SNAPSHOT jar Orebfuscator4 diff --git a/src/main/java/com/lishid/orebfuscator/chunkmap/ChunkMapManager.java b/src/main/java/com/lishid/orebfuscator/chunkmap/ChunkMapManager.java index 7ec4f879..81b5cbfd 100644 --- a/src/main/java/com/lishid/orebfuscator/chunkmap/ChunkMapManager.java +++ b/src/main/java/com/lishid/orebfuscator/chunkmap/ChunkMapManager.java @@ -284,7 +284,7 @@ private boolean moveToNextLayer() throws IOException { moveToNextSection(); - if(oldSectionIndex + 1 == this.sectionIndex) { + if(this.sectionIndex < 16 && oldSectionIndex + 1 == this.sectionIndex) { readLayer(this.buffer.nextLayer); } } else { diff --git a/src/main/java/com/lishid/orebfuscator/obfuscation/Calculations.java b/src/main/java/com/lishid/orebfuscator/obfuscation/Calculations.java index 363b6aad..3534685e 100644 --- a/src/main/java/com/lishid/orebfuscator/obfuscation/Calculations.java +++ b/src/main/java/com/lishid/orebfuscator/obfuscation/Calculations.java @@ -271,7 +271,7 @@ private static byte[] Obfuscate(ChunkData chunkData, Player player, ArrayList