mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-28 14:37:42 +02:00
Shift 4 bits to left in chunk unloading
This commit is contained in:
parent
7856716a3a
commit
891f8b143f
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user