From a0fe836616e935d30cf86831f2cf70dfea90e4b4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 26 Aug 2023 11:56:56 +0200 Subject: [PATCH] Fix ItemsCommand in Local Region if Global is not enabled Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/region/ItemsCommand.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ItemsCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ItemsCommand.java index 3b99382d..d1709dc7 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ItemsCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ItemsCommand.java @@ -42,11 +42,6 @@ public class ItemsCommand extends SWCommand { @Register(description = "REGION_ITEMS_HELP") public void toggleCommand(@Validator Player p) { Region region = Region.getRegion(p.getLocation()); - if (region != GlobalRegion.getInstance() && GlobalRegion.getInstance().getPlain(Flag.ITEMS, ItemMode.class) == ItemMode.INACTIVE) { - RegionUtils.actionBar(region, "REGION_ITEMS_DISABLED_GLOBAL"); - return; - } - if (toggle(region)) { RegionUtils.actionBar(region, getEnableMessage()); } else {