Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-25 15:50:10 +01:00
Shift 4 bits to left in chunk unloading
Dieser Commit ist enthalten in:
Ursprung
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren