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);