From 7f2b3fc3ea192c76cd6f587a2a6cc0c2ec56239d Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 4 Dec 2021 01:49:07 +0100 Subject: [PATCH] Fix --- .../de/steamwar/bausystem/features/region/ResetCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java index 16a879b4..d17fadef 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/ResetCommand.java @@ -62,8 +62,8 @@ public class ResetCommand extends SWCommand { public void schematicResetCommand(@Guard Player p, SchematicNode node) { Region region = regionCheck(p); if (region == null) return; - if (node == null) { - BauSystem.MESSAGE.send("REGION_RESET_NO_SCHEM", p); + if (node.isDir()) { + BauSystem.MESSAGE.send("ONLY_SCHEMS", p); return; } try {