diff --git a/FightSystem_Core/src/config.yml b/FightSystem_Core/src/config.yml index c39ff0b..76d3b49 100644 --- a/FightSystem_Core/src/config.yml +++ b/FightSystem_Core/src/config.yml @@ -46,8 +46,7 @@ Arena: # Allow leaving the arena area as spectator Leaveable: false # defaults to false if missing # Allow missiles to fly to the enemy and not stop at the schem border. - # This overrides the 'EnterStages' setting if present otherwise if any 'EnterStages' are present this defaults to 'true'. - AllowMissiles: false # defaults to false if missing + AllowMissiles: false # defaults to true if a 'EnterStages' is present otherwise 'false' Schematic: # The size of the schematics diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java index b985885..86026c6 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java @@ -195,7 +195,7 @@ public class Config { PercentBlocks = Collections.unmodifiableSet(config.getStringList("WinConditionParams.Blocks").stream().map(Material::valueOf).collect(Collectors.toSet())); EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages")); - AllowMissiles = config.getBoolean("Arena.AllowMissiles", EnterStages.isEmpty()); + AllowMissiles = config.getBoolean("Arena.AllowMissiles", !EnterStages.isEmpty()); KitFile = config.getString("Kits.File", "kits.yml"); MemberDefault = config.getString("Kits.MemberDefault", "default");