From 5e903f115dba7e570cb99c2e73fdd8e3b8fb4cbd Mon Sep 17 00:00:00 2001 From: MoBrot <90271578+MoBrot@users.noreply.github.com> Date: Sun, 22 Jan 2023 23:54:13 +0100 Subject: [PATCH] Buckets in inventories --- .../steamwar/schematicsystem/autocheck/AutoChecker15.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SchematicSystem_15/src/de/steamwar/schematicsystem/autocheck/AutoChecker15.java b/SchematicSystem_15/src/de/steamwar/schematicsystem/autocheck/AutoChecker15.java index fba059a..4bfd30f 100644 --- a/SchematicSystem_15/src/de/steamwar/schematicsystem/autocheck/AutoChecker15.java +++ b/SchematicSystem_15/src/de/steamwar/schematicsystem/autocheck/AutoChecker15.java @@ -140,8 +140,11 @@ public class AutoChecker15 implements AutoChecker.IAutoChecker { if(material == Material.DISPENSER && (itemType.equals(Material.FIRE_CHARGE) || itemType.equals(Material.ARROW))) { counter += item.getByte("Count"); - }else if (!FLOWERS.contains(itemType) && !((material == Material.CHEST || material == Material.BARREL) && itemType.equals(Material.TNT)) - && (material == Material.DISPENSER && !itemType.equals(Material.BUCKET))) { + }else if (!FLOWERS.contains(itemType) && !((material == Material.CHEST || material == Material.BARREL) && itemType.equals(Material.TNT))) { + + if(material == Material.DISPENSER && itemType.equals(Material.BUCKET)) + return; + result.getForbiddenItems().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType); } else if (item.containsKey("tag")) { result.getForbiddenNbt().computeIfAbsent(pos, blockVector3 -> new HashSet<>()).add(itemType);