From 364a0e943c60959f40483c178e1b684c20c2a994 Mon Sep 17 00:00:00 2001 From: lugui Date: Mon, 7 Oct 2024 12:22:13 -0300 Subject: [PATCH] Fix crash with betterchunkloading mod --- .../world/expiring_chunk_tickets/ChunkTicketManagerMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/jellysquid/mods/lithium/mixin/minimal_nonvanilla/world/expiring_chunk_tickets/ChunkTicketManagerMixin.java b/src/main/java/me/jellysquid/mods/lithium/mixin/minimal_nonvanilla/world/expiring_chunk_tickets/ChunkTicketManagerMixin.java index 2f29f6be8..e871b452d 100644 --- a/src/main/java/me/jellysquid/mods/lithium/mixin/minimal_nonvanilla/world/expiring_chunk_tickets/ChunkTicketManagerMixin.java +++ b/src/main/java/me/jellysquid/mods/lithium/mixin/minimal_nonvanilla/world/expiring_chunk_tickets/ChunkTicketManagerMixin.java @@ -72,7 +72,7 @@ private void registerExpiringTicket(long position, ChunkTicket ticket, Callba private void unregisterExpiringTicket(long pos, ChunkTicket ticket, CallbackInfo ci) { if (canExpire(ticket)) { SortedArraySet> ticketsAtPos = this.positionWithExpiringTicket.get(pos); - if (canNoneExpire(ticketsAtPos)) { + if (ticketsAtPos != null && canNoneExpire(ticketsAtPos)) { this.positionWithExpiringTicket.remove(pos); } }