From 24393d4ef4084161d9316674f9a1e9f6cd9ea0e6 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Tue, 29 Jun 2021 18:11:51 +0200 Subject: [PATCH] 1.17.1-pre2 --- .../viaversion/api/protocol/version/ProtocolVersion.java | 2 +- .../protocols/protocol1_17to1_16_4/packets/WorldPackets.java | 2 +- gradle.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java index bc8c63960..fa0eeb562 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java +++ b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java @@ -77,7 +77,7 @@ public class ProtocolVersion { public static final ProtocolVersion v1_16_3 = register(753, "1.16.3"); public static final ProtocolVersion v1_16_4 = register(754, "1.16.4/5", new VersionRange("1.16", 4, 5)); public static final ProtocolVersion v1_17 = register(755, "1.17"); - public static final ProtocolVersion v1_17_1 = register(756, 36, "1.17.1"); + public static final ProtocolVersion v1_17_1 = register(756, 37, "1.17.1"); public static final ProtocolVersion unknown = register(-1, "UNKNOWN"); public static ProtocolVersion register(int version, String name) { diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_17to1_16_4/packets/WorldPackets.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_17to1_16_4/packets/WorldPackets.java index 0c3f252bd..6bce5ff77 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_17to1_16_4/packets/WorldPackets.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_17to1_16_4/packets/WorldPackets.java @@ -109,7 +109,7 @@ public final class WorldPackets { private void writeLightArrays(PacketWrapper wrapper, int bitMask) throws Exception { List light = new ArrayList<>(); - for (int i = 0; i <= 17; i++) { + for (int i = 0; i < 18; i++) { if (isSet(bitMask, i)) { light.add(wrapper.read(Type.BYTE_ARRAY_PRIMITIVE)); } diff --git a/gradle.properties b/gradle.properties index 70d031711..6cead460c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Project properties - we put these here so they can be modified without causing a recompile of the build scripts -projectVersion=4.0.1-1.17.1-pre1-SNAPSHOT +projectVersion=4.0.1-1.17.1-pre2-SNAPSHOT # Gradle properties org.gradle.daemon=true