From e6194a7a67069059c98bb4a2fb7b22f71d5e0a0d Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 19 Jan 2020 07:13:10 +0100 Subject: [PATCH] Adding only public schems to techhider Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/utils/TechHider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java b/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java index 5c587ad..0a37c65 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java @@ -14,6 +14,7 @@ import de.steamwar.core.Core; import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.FightSystem; import de.steamwar.fightsystem.IFightSystem; +import de.steamwar.fightsystem.fight.Fight; import javafx.util.Pair; import org.bukkit.Bukkit; import org.bukkit.GameMode; @@ -237,6 +238,6 @@ public class TechHider { } private static boolean disabled(){ - return Config.OnlyPublicSchematics || Config.test(); + return Config.OnlyPublicSchematics || Fight.onlyPublicSchems() || Config.test(); } }