Prevent null exceptions. Check if no more blocks.
This commit is contained in:
parent
05e6fb1e29
commit
5af11674cd
2 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ mod_name=Zontreck's Library Mod
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=GPLv3
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=1201.13.042524.0023
|
||||
mod_version=1201.13.042524.0038
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
|
@ -26,6 +26,7 @@ public class BlockRestoreRunner implements Runnable
|
|||
if(queue.getQueuedBlocks() == 0 && !queue.usesDatabase()) return; // We'll be queued back up later
|
||||
|
||||
PrimitiveBlock prim = queue.getNextBlock();
|
||||
if(prim == null)return; // No more blocks.
|
||||
|
||||
Level level = prim.level;
|
||||
|
||||
|
|
Reference in a new issue