SteamWar/FightSystem
Archiviert
13
1

Update Config
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-06-07 14:58:21 +02:00
Ursprung b006a66fa7
Commit bd4696429d
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -75,6 +75,7 @@ public class Config {
public static final boolean GroundWalkable; public static final boolean GroundWalkable;
public static final boolean DisableSnowMelt; public static final boolean DisableSnowMelt;
public static final boolean ArenaLeaveable; public static final boolean ArenaLeaveable;
public static final boolean AllowMissiles;
//schematic parameter //schematic parameter
public static final boolean RanksEnabled; public static final boolean RanksEnabled;
@ -172,6 +173,7 @@ public class Config {
GroundWalkable = config.getBoolean("Arena.GroundWalkable", true); GroundWalkable = config.getBoolean("Arena.GroundWalkable", true);
DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false); DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false);
ArenaLeaveable = config.getBoolean("Arena.Leaveable", false); ArenaLeaveable = config.getBoolean("Arena.Leaveable", false);
AllowMissiles = config.getBoolean("Arena.AllowMissiles", false);
int schemsizeX = config.getInt("Schematic.Size.x"); int schemsizeX = config.getInt("Schematic.Size.x");
int schemsizeY = config.getInt("Schematic.Size.y"); int schemsizeY = config.getInt("Schematic.Size.y");

Datei anzeigen

@ -36,8 +36,8 @@ public class PistonListener implements Listener {
public PistonListener() { public PistonListener() {
//Wenn Entern aktiv ist, sollen Raketen etc. entern können //Wenn Entern aktiv ist, sollen Raketen etc. entern können
if(!ArenaMode.Check.contains(Config.mode)) { if(!ArenaMode.Check.contains(Config.mode)) {
new StateDependentListener(Config.EnterStages.isEmpty(), FightState.All, this); new StateDependentListener(Config.EnterStages.isEmpty() || Config.AllowMissiles, FightState.All, this);
new StateDependentListener(!Config.EnterStages.isEmpty(), FightState.Setup, this); new StateDependentListener(!(Config.EnterStages.isEmpty() || Config.AllowMissiles), FightState.Setup, this);
} }
} }