diff --git a/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java b/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java index 9dd0d0200..f66c43693 100644 --- a/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java +++ b/common/src/main/java/us/myles/ViaVersion/api/protocol/Protocol.java @@ -109,7 +109,7 @@ public abstract class Protocol { if (!override && incoming.containsKey(pair)) { Via.getPlatform().getLogger().log(Level.WARNING, pair + " already registered!" + " If this override is intentional, set override to true. Stacktrace: ", new Exception()); - }; + } incoming.put(pair, protocolPacket); } diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/storage/BlockConnectionStorage.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/storage/BlockConnectionStorage.java index 1694e2af9..176e66563 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/storage/BlockConnectionStorage.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/storage/BlockConnectionStorage.java @@ -91,7 +91,7 @@ public class BlockConnectionStorage extends StoredObject { public void unloadChunk(int x, int z) { for (int y = 0; y < 256; y += 16) { - blockStorage.remove(getChunkSectionIndex(x, y, z)); + blockStorage.remove(getChunkSectionIndex(x << 4, y, z << 4)); } }