fix rare null pointer in sharedApi

This commit is contained in:
James Seibel
2025-02-08 11:38:36 -06:00
parent 3a94bbe804
commit f20231ccbc
@@ -562,8 +562,11 @@ public class SharedApi
if (remainingSlots <= 0)
{
DhChunkPos furthest = this.furthestQueue.poll();
this.closestQueue.remove(furthest);
this.updateDataByChunkPos.remove(furthest);
if (furthest != null)
{
this.closestQueue.remove(furthest);
this.updateDataByChunkPos.remove(furthest);
}
}
this.updateDataByChunkPos.put(pos, updateData);