Null check max status in GenerationChunkHolder#getChunkIfPresent
If the ticket level is set to unloaded, then it will be null.
This commit is contained in:
@@ -226,7 +226,7 @@ public abstract class GenerationChunkHolderMixin {
|
||||
public ChunkAccess getChunkIfPresent(final ChunkStatus chunkStatus) {
|
||||
final ChunkStatus maxStatus = ChunkLevel.generationStatus(this.getTicketLevel());
|
||||
|
||||
if (chunkStatus.isOrAfter(maxStatus)) {
|
||||
if (maxStatus == null || chunkStatus.isOrAfter(maxStatus)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user