From b02eda9fe8c2ed1a543c2b10160e0ad1e1cb0fcb Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 28 Jul 2023 22:54:19 +0200 Subject: [PATCH] Fix TestblockCommand Signed-off-by: yoyosource --- .../bausystem/features/region/TestblockCommand.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 df29c1df..64164912 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/TestblockCommand.java @@ -59,8 +59,14 @@ public class TestblockCommand extends SWCommand { } @Register - public void schematicTestblockCommand(@Validator Player p, @OptionalValue("") @Mapper("withPublic") @AllowNull SchematicNode node, TestblockParameterType... testblockParameterTypes) { + public void schematicTestblockCommand(@Validator Player p, TestblockParameterType... testblockParameterTypes) { + schematicTestblockCommand(p, null, testblockParameterTypes); + } + + @Register + public void schematicTestblockCommand(@Validator Player p, @Mapper("withPublic") SchematicNode node, TestblockParameterType... testblockParameterTypes) { Set testblockParameterTypesSet = new HashSet<>(Arrays.asList(testblockParameterTypes)); + System.out.println(testblockParameterTypesSet); boolean isExtension = testblockParameterTypesSet.contains(TestblockParameterType.EXTENSION); boolean isIgnoreAir = testblockParameterTypesSet.contains(TestblockParameterType.IGNORE_AIR); boolean isOnlyColor = testblockParameterTypesSet.contains(TestblockParameterType.ONLY_COLOR);