From e49215d9216ef57656651c89bb35a93ff0f83f9e Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 7 Jun 2022 15:13:03 +0200 Subject: [PATCH] Update Config --- FightSystem_Core/src/config.yml | 3 +-- FightSystem_Core/src/de/steamwar/fightsystem/Config.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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");