Fix incorrect parsing of final-wave.

This commit is contained in:
garbagemule committed 2013-12-17 03:55:14 +01:00
1 parent 5ff41d20fe
commit b14f665af0
2 files changed
+4 -3

No files matched your search

@@ -43,8 +43,9 @@ public class WaveManager
recurrentWaves = WaveParser.parseWaves(arena, rConfig, WaveBranch.RECURRENT);
singleWaves = WaveParser.parseWaves(arena, sConfig, WaveBranch.SINGLE);
finalWave = section.getInt("arenas." + arena.configName() + ".settings.final-wave", 0);
// getParent() => go back to the arena-node to access settings
finalWave = section.getParent().getInt("settings.final-wave", 0);
if (recurrentWaves.isEmpty()) {
Messenger.warning(WaveError.NO_RECURRENT_WAVES.format(arena.configName()));