mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-23 16:01:32 +01:00
don't create chunksection on remove
This commit is contained in:
parent
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);
|
||||
|
Loading…
Reference in New Issue
Block a user