Skip to content

Commit

Permalink
catch possible NullPointerException caused by Hodgepodge > v2.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 committed Jan 9, 2025
1 parent e90e47f commit 1e9b65c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ protected void remChunk(DimChunkCoord coord) {
Ticket ticket = heldChunks.remove(coord);
if (ticket == null) return;

ForgeChunkManager.unforceChunk(ticket, coord.getChunkCoord());
try {
ForgeChunkManager.unforceChunk(ticket, coord.getChunkCoord());
} catch (NullPointerException ignore) {
// Catches an error since Hodgepodge 2.6.7 (2.6.6 is the last version that works)
}

if (ticket.getChunkList()
.size() == ticket.getChunkListDepth() - 1) {
Expand Down

0 comments on commit 1e9b65c

Please sign in to comment.