fix a potential null pointer on world shutdown

This commit is contained in:
James Seibel
2025-10-04 10:26:53 -05:00
parent 25213cae39
commit 569a5442a9
@@ -92,6 +92,11 @@ public class F3Screen
ThreadPoolExecutor migrationPool = ThreadPoolUtil.getFullDataMigrationExecutor();
AbstractDhWorld world = SharedApi.getAbstractDhWorld();
if (world == null)
{
return;
}
Iterable<? extends IDhLevel> levelIterator = world.getAllLoadedLevels();