prevent a potential null pointer

This commit is contained in:
James Seibel
2021-02-27 19:04:42 -06:00
parent e1cf190a7f
commit b127ad0538
@@ -24,6 +24,9 @@ public class LodUtils
*/
public static ServerWorld getFirstValidServerWorld()
{
if (mc.getIntegratedServer() == null)
return null;
Iterable<ServerWorld> worlds = mc.getIntegratedServer().getWorlds();
for (ServerWorld world : worlds)