From 93e7236733e263f5dfa6ffe0a289260f0f61d665 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 6 Jan 2020 11:55:50 +0100 Subject: [PATCH] Making the Check system 1.14 / 1.15 ready --- .../schematicsystem/CheckSchemType_15.java | 49 +++++++++---------- .../schematicsystem/AutoCheckResult.java | 2 +- SchematicSystem_Main/pom.xml | 10 +--- 3 files changed, 27 insertions(+), 34 deletions(-) diff --git a/SchematicSystem_15/src/de/steamwar/schematicsystem/CheckSchemType_15.java b/SchematicSystem_15/src/de/steamwar/schematicsystem/CheckSchemType_15.java index 119e2aa..d92596f 100644 --- a/SchematicSystem_15/src/de/steamwar/schematicsystem/CheckSchemType_15.java +++ b/SchematicSystem_15/src/de/steamwar/schematicsystem/CheckSchemType_15.java @@ -18,40 +18,41 @@ import java.util.logging.Level; class CheckSchemType_15 { private static final Set INVENTORY = EnumSet.of( - Material.CHEST, - Material.TRAPPED_CHEST, - Material.HOPPER, - Material.FURNACE, - Material.DROPPER, - Material.JUKEBOX, - Material.DISPENSER, - Material.ANVIL, + Material.BARREL, + Material.BLAST_FURNACE, Material.BREWING_STAND, - Material.BLACK_SHULKER_BOX, - Material.RED_SHULKER_BOX, + Material.CAMPFIRE, + Material.CHEST, + Material.DISPENSER, + Material.DROPPER, + Material.FURNACE, + Material.HOPPER, + Material.JUKEBOX, + Material.SHULKER_BOX, Material.WHITE_SHULKER_BOX, Material.ORANGE_SHULKER_BOX, - Material.BLUE_SHULKER_BOX, + Material.MAGENTA_SHULKER_BOX, Material.LIGHT_BLUE_SHULKER_BOX, Material.YELLOW_SHULKER_BOX, - Material.GREEN_SHULKER_BOX, - Material.BROWN_SHULKER_BOX, - Material.CYAN_SHULKER_BOX, + Material.LIME_SHULKER_BOX, + Material.PINK_SHULKER_BOX, Material.GRAY_SHULKER_BOX, Material.LIGHT_GRAY_SHULKER_BOX, - Material.LIME_SHULKER_BOX, - Material.MAGENTA_SHULKER_BOX, - Material.PINK_SHULKER_BOX, + Material.CYAN_SHULKER_BOX, Material.PURPLE_SHULKER_BOX, - Material.LECTERN, - Material.BEACON, - Material.BARREL); + Material.BLUE_SHULKER_BOX, + Material.BROWN_SHULKER_BOX, + Material.GREEN_SHULKER_BOX, + Material.RED_SHULKER_BOX, + Material.BLACK_SHULKER_BOX, + Material.SMOKER, + Material.TRAPPED_CHEST); private static final Set FLOWERS = EnumSet.of( Material.CORNFLOWER, + Material.POPPY, Material.FERN, Material.DANDELION, - Material.POPPY, Material.BLUE_ORCHID, Material.ALLIUM, Material.AZURE_BLUET, @@ -62,9 +63,7 @@ class CheckSchemType_15 { Material.OXEYE_DAISY, Material.CORNFLOWER, Material.LILY_OF_THE_VALLEY, - Material.WITHER_ROSE, - Material.BROWN_MUSHROOM, - Material.RED_MUSHROOM); + Material.WITHER_ROSE); private CheckSchemType_15(){} @@ -104,7 +103,7 @@ class CheckSchemType_15 { if(blockMaterial == Material.TNT || blockMaterial == Material.OBSIDIAN) tnt++; - if(blockMaterial == Material.SLIME_BLOCK || blockMaterial == Material.BEDROCK) + if(blockMaterial == Material.SLIME_BLOCK || blockMaterial == Material.HONEY_BLOCK || blockMaterial == Material.BEDROCK) slime++; if(blockMaterial == Material.DISPENSER) diff --git a/SchematicSystem_API/src/de/steamwar/schematicsystem/AutoCheckResult.java b/SchematicSystem_API/src/de/steamwar/schematicsystem/AutoCheckResult.java index 1b55480..b453e51 100644 --- a/SchematicSystem_API/src/de/steamwar/schematicsystem/AutoCheckResult.java +++ b/SchematicSystem_API/src/de/steamwar/schematicsystem/AutoCheckResult.java @@ -61,7 +61,7 @@ public class AutoCheckResult { if(type.getMaxTNT() != 0 && tnt > type.getMaxTNT()) errors.add("Zu viele TNT-Blöcke (" + tnt + " > " + type.getMaxTNT() + ")"); if(type.getMaxSlime() != 0 && slime > type.getMaxSlime()) - errors.add("Zu viele Schleim-Blöcke (" + slime + " > " + type.getMaxSlime() + ")"); + errors.add("Zu viele Schleim/Honig-Blöcke (" + slime + " > " + type.getMaxSlime() + ")"); if(type.getMaxDispenser() != 0 && dispenser > type.getMaxDispenser()) errors.add("Zu viele Werfer (" + dispenser + " > " + type.getMaxDispenser() + ")"); if(type.getMaxTNTSlime() != 0 && errorTNTSlime > type.getMaxTNTSlime()) diff --git a/SchematicSystem_Main/pom.xml b/SchematicSystem_Main/pom.xml index 94b2b47..6008670 100644 --- a/SchematicSystem_Main/pom.xml +++ b/SchematicSystem_Main/pom.xml @@ -47,19 +47,13 @@ steamwar Spigot - 1.12 - provided - - - steamwar - FAWE - 1.0 + 1.15 provided steamwar WorldEdit - 1.0 + 1.15 provided