3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 13:52:50 +02:00

Shift 4 bits to left in chunk unloading

Dieser Commit ist enthalten in:
creeper123123321 2019-02-11 17:01:27 -02:00
Ursprung 7856716a3a
Commit 891f8b143f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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