don't create chunksection on remove

This commit is contained in:
creeper123123321 2019-01-15 15:45:18 -02:00
parent 2285c453da
commit d5f65eceb0
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

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