From 83c31f9297b72f39cb8059ccbddfff3617c12573 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 5 Jul 2021 12:13:21 +0200 Subject: [PATCH] Fix TestblockCommand with public schem Signed-off-by: yoyosource --- .../bausystem/features/region/TestblockCommand.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java index 010e5883..b0389386 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java @@ -91,8 +91,11 @@ public class TestblockCommand extends SWCommand { if (region == null) return; Schematic schem = Schematic.getSchemFromDB(s, p.getUniqueId()); if (schem == null) { - BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p); - return; + schem = Schematic.getSchemFromDB(s, 0); + if (schem == null) { + BauSystem.MESSAGE.send("REGION_TB_NO_SCHEM", p); + return; + } } try { region.reset(schem, RegionType.TESTBLOCK, regionExtensionType);