Shift 4 bits to left in chunk unloading

This commit is contained in:
creeper123123321 2019-02-11 17:01:27 -02:00
parent 7856716a3a
commit 891f8b143f
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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));
}
}