From cbc8a919a62e063fde1a0a129568818cd20329c7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 16 Jan 2021 09:11:06 +0100 Subject: [PATCH] Hotfix region bug --- .../src/de/steamwar/bausystem/commands/CommandReset.java | 2 +- .../src/de/steamwar/bausystem/commands/CommandTestblock.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandReset.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandReset.java index 3844887..353fd22 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandReset.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandReset.java @@ -46,7 +46,7 @@ public class CommandReset implements CommandExecutor { } for(Region region : Region.getRegions()){ - if(region.inRegion(player.getLocation()) && region.hasProtection()){ + if(region.inRegion(player.getLocation())){ try { if(args.length > 0){ Schematic schem = Schematic.getSchemFromDB(args[0], player.getUniqueId()); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTestblock.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTestblock.java index 9d0bc15..7543c54 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTestblock.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTestblock.java @@ -46,7 +46,7 @@ public class CommandTestblock implements CommandExecutor { } for(Region region : Region.getRegions()){ - if(region.inRegion(player.getLocation()) && region.hasProtection()){ + if(region.inRegion(player.getLocation())){ try { Schematic schem = null; if(args.length > 0){