Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
don't create chunksection on remove
Dieser Commit ist enthalten in:
Ursprung
2285c453da
Commit
d5f65eceb0
@ -45,7 +45,8 @@ public class BlockConnectionStorage extends StoredObject {
|
||||
|
||||
public void remove(Position position) {
|
||||
long pair = getChunkSectionIndex(position);
|
||||
short[] map = getChunkSection(pair);
|
||||
short[] map = blockStorage.get(pair);
|
||||
if (map == null) return;
|
||||
map[encodeBlockPos(position)] = 0;
|
||||
if (Arrays.equals(short4096, map)) {
|
||||
blockStorage.remove(pair);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren