Fix DefaultWorld NPE (#508)

This commit is contained in:
sdburns1998
2019-06-06 16:09:12 +02:00
committed by Kyleeld
parent 0b01976257
commit 55456cf9b1

View File

@@ -112,6 +112,12 @@ public class DefaultWorldPlugin extends Plugin
try
{
final WorldResult worldResult = worldClient.lookupWorlds();
if (worldResult == null)
{
return;
}
final World world = worldResult.findWorld(correctedWorld);
if (world != null)