Having disabled dimensions when they are not created causes timer crash

Issue #4 new
chris_johnson created an issue

As reported in the thread, http://www.minecraftforge.net/forum/index.php/topic,4606.msg57611.html#msg57611

There is a crash when the disabled dimensions contains an age that has not been created.

This does not seem to be a major issue on servers where there is only a single world created, however on single player the users may have several different worlds with different number of dimensions present which causes the crash.

I found this on my test world which has only the default overworld,nether and end dimensions. while my main world has 8-9 dimensions and I disable backup of most of the mystcraft ages.

013-08-06 02:00:25 [INFO] [forgebackup] Starting a new backup.
2013-08-06 02:00:25 [FINE] [forgebackup] Disabling saving...
2013-08-06 02:00:25 [FINE] [forgebackup] Forcing an updated save...
2013-08-06 02:00:25 [FINE] [forgebackup] Creating new backup of your world...
2013-08-06 02:00:25 [FINE] [forgebackup] Re-enabling saving...
2013-08-06 02:00:25 [INFO] [STDERR] Exception in thread "Timer-0" java.lang.IllegalArgumentException: Could not get provider type for dimension 12, does not exist
2013-08-06 02:00:25 [INFO] [STDERR]     at net.minecraftforge.common.DimensionManager.getProviderType(DimensionManager.java:157)
2013-08-06 02:00:25 [INFO] [STDERR]     at net.minecraftforge.common.DimensionManager.createProviderFor(DimensionManager.java:304)
2013-08-06 02:00:25 [INFO] [STDERR]     at net.minecraft.world.WorldProvider.func_76570_a(WorldProvider.java:207)
2013-08-06 02:00:25 [INFO] [STDERR]     at monoxide.forgebackup.backup.Backup.doBackup(Backup.java:123)
2013-08-06 02:00:25 [INFO] [STDERR]     at monoxide.forgebackup.backup.Backup.run(Backup.java:47)
2013-08-06 02:00:25 [INFO] [STDERR]     at monoxide.forgebackup.backup.BackupTask.processArchiveBackups(BackupTask.java:36)
2013-08-06 02:00:25 [INFO] [STDERR]     at monoxide.forgebackup.backup.ArchiveBackupTask.run(ArchiveBackupTask.java:16)
2013-08-06 02:00:25 [INFO] [STDERR]     at java.util.TimerThread.mainLoop(Timer.java:555)
2013-08-06 02:00:25 [INFO] [STDERR]     at java.util.TimerThread.run(Timer.java:505)

Comments (1)

  1. Log in to comment