diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/Protocol1_18To1_17_1.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/Protocol1_18To1_17_1.java index 823e07375..dfaaf5b19 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/Protocol1_18To1_17_1.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/Protocol1_18To1_17_1.java @@ -42,7 +42,7 @@ public final class Protocol1_18To1_17_1 extends AbstractProtocol blockEntities = new ArrayList<>(oldChunk.getBlockEntities().size()); for (final CompoundTag tag : oldChunk.getBlockEntities()) { + if (!tag.contains("x") || !tag.contains("y") || !tag.contains("z") || !tag.contains("id")) { + continue; + } + final int x = ((NumberTag) tag.get("x")).asInt(); final int z = ((NumberTag) tag.get("z")).asInt(); final byte packedXZ = (byte) ((x & 15) << 4 | (z & 15)); diff --git a/settings.gradle.kts b/settings.gradle.kts index 3e411d3f2..995a746ed 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -4,7 +4,6 @@ enableFeaturePreview("VERSION_CATALOGS") dependencyResolutionManagement { // configures repositories for all projects repositories { - mavenLocal() maven("https://repo.viaversion.com") maven("https://papermc.io/repo/repository/maven-public/") maven("https://oss.sonatype.org/content/repositories/snapshots/")