Fixed world loading
@@ -100,7 +100,7 @@ public class FileWorldGeneratorImplementation extends HandlerBase implements IWo
WorldSummary newWorld = null;
for (WorldSummary ws : worldlist)
{
- if (ws.getFileName().equals(mapCopy.getAbsolutePath()))
+ if (ws.getFileName().equals(mapCopy.getName()))
newWorld = ws;
}
if (newWorld == null)
@@ -112,7 +112,7 @@ public class FileWorldGeneratorImplementation extends HandlerBase implements IWo
net.minecraftforge.fml.client.FMLClientHandler.instance().tryLoadExistingWorld(null, newWorld);
IntegratedServer server = Minecraft.getMinecraft().getIntegratedServer();
String worldName = (server != null) ? server.getWorldName() : null;
- if (worldName == null || !worldName.equals(mapSource.getName()))
+ if (worldName == null || !worldName.equals(newWorld.getDisplayName()))
{
this.errorDetails = "Minecraft could not load " + this.mapFilename + " - is it a valid saved world?";
return false;
