mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Fix incorrect parsing of final-wave.
This commit is contained in:
parent
5ff41d20fe
commit
b14f665af0
@ -1,7 +1,7 @@
|
|||||||
name: MobArena
|
name: MobArena
|
||||||
author: garbagemule
|
author: garbagemule
|
||||||
main: com.garbagemule.MobArena.MobArena
|
main: com.garbagemule.MobArena.MobArena
|
||||||
version: 0.95.5.38
|
version: 0.95.5.39
|
||||||
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
|
softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault]
|
||||||
commands:
|
commands:
|
||||||
ma:
|
ma:
|
||||||
|
@ -43,8 +43,9 @@ public class WaveManager
|
|||||||
|
|
||||||
recurrentWaves = WaveParser.parseWaves(arena, rConfig, WaveBranch.RECURRENT);
|
recurrentWaves = WaveParser.parseWaves(arena, rConfig, WaveBranch.RECURRENT);
|
||||||
singleWaves = WaveParser.parseWaves(arena, sConfig, WaveBranch.SINGLE);
|
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()) {
|
if (recurrentWaves.isEmpty()) {
|
||||||
Messenger.warning(WaveError.NO_RECURRENT_WAVES.format(arena.configName()));
|
Messenger.warning(WaveError.NO_RECURRENT_WAVES.format(arena.configName()));
|
||||||
|
Loading…
Reference in New Issue
Block a user