From bd4696429deefc1563ef8a229e981576219c079f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 7 Jun 2022 14:58:21 +0200 Subject: [PATCH] Update Config --- FightSystem_Core/src/de/steamwar/fightsystem/Config.java | 2 ++ .../src/de/steamwar/fightsystem/listener/PistonListener.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java index 0bc6775..9404bbe 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/Config.java @@ -75,6 +75,7 @@ public class Config { public static final boolean GroundWalkable; public static final boolean DisableSnowMelt; public static final boolean ArenaLeaveable; + public static final boolean AllowMissiles; //schematic parameter public static final boolean RanksEnabled; @@ -172,6 +173,7 @@ public class Config { GroundWalkable = config.getBoolean("Arena.GroundWalkable", true); DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false); ArenaLeaveable = config.getBoolean("Arena.Leaveable", false); + AllowMissiles = config.getBoolean("Arena.AllowMissiles", false); int schemsizeX = config.getInt("Schematic.Size.x"); int schemsizeY = config.getInt("Schematic.Size.y"); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/PistonListener.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/PistonListener.java index 43848ba..9c60d19 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/PistonListener.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/PistonListener.java @@ -36,8 +36,8 @@ public class PistonListener implements Listener { public PistonListener() { //Wenn Entern aktiv ist, sollen Raketen etc. entern können if(!ArenaMode.Check.contains(Config.mode)) { - new StateDependentListener(Config.EnterStages.isEmpty(), FightState.All, this); - new StateDependentListener(!Config.EnterStages.isEmpty(), FightState.Setup, this); + new StateDependentListener(Config.EnterStages.isEmpty() || Config.AllowMissiles, FightState.All, this); + new StateDependentListener(!(Config.EnterStages.isEmpty() || Config.AllowMissiles), FightState.Setup, this); } }