Fix remove in ChunkLightStorage

This commit is contained in:
Nassim Jahnke 2021-10-08 10:05:50 +02:00
parent a2acd261d8
commit 3feff8e751
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -35,7 +35,7 @@ public final class ChunkLightStorage implements StorableObject {
} }
public @Nullable ChunkLight removeLight(final int x, final int z) { public @Nullable ChunkLight removeLight(final int x, final int z) {
return lightPackets.get(getChunkSectionIndex(x, z)); return lightPackets.remove(getChunkSectionIndex(x, z));
} }
public void addLoadedChunk(final int x, final int z) { public void addLoadedChunk(final int x, final int z) {