World check now uses integrated server's world rather than client world.
@@ -1235,7 +1235,7 @@ public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
world = Minecraft.getMinecraft().getIntegratedServer().getEntityWorld();
boolean needsNewWorld = serverHandlers != null && serverHandlers.worldGenerator != null && serverHandlers.worldGenerator.shouldCreateWorld(currentMissionInit(), world);
- boolean worldCurrentlyExists = Minecraft.getMinecraft().getIntegratedServer() != null && Minecraft.getMinecraft().world != null;
+ boolean worldCurrentlyExists = world != null;
if (worldCurrentlyExists)
{
// If a world already exists, we need to check that our requested agent name matches the name
