diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/BlockInteractionListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/BlockInteractionListener.java index c1b8003fd..56963e704 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/BlockInteractionListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/BlockInteractionListener.java @@ -164,7 +164,6 @@ public class BlockInteractionListener extends FlagListener { case YELLOW_SHULKER_BOX: case SHULKER_BOX: case FLOWER_POT: - case DROPPER: case HOPPER: case HOPPER_MINECART: checkIsland(e, loc, Flags.CHEST); @@ -172,6 +171,9 @@ public class BlockInteractionListener extends FlagListener { case DISPENSER: checkIsland(e, loc, Flags.DISPENSER); break; + case DROPPER: + checkIsland(e, loc, Flags.DROPPER); + break; case ACACIA_DOOR: case BIRCH_DOOR: case DARK_OAK_DOOR: diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/InventoryListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/InventoryListener.java index 45b592cd7..b9489858a 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/InventoryListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/InventoryListener.java @@ -40,13 +40,15 @@ public class InventoryListener extends FlagListener { } else if (inventoryHolder instanceof Chest || inventoryHolder instanceof Hopper - || inventoryHolder instanceof Dropper || inventoryHolder instanceof ShulkerBox) { checkIsland(e, e.getInventory().getLocation(), Flags.CHEST); } else if (inventoryHolder instanceof Dispenser) { checkIsland(e, e.getInventory().getLocation(), Flags.DISPENSER); } + else if (inventoryHolder instanceof Dropper) { + checkIsland(e, e.getInventory().getLocation(), Flags.DROPPER); + } else if (inventoryHolder instanceof Furnace) { checkIsland(e, e.getInventory().getLocation(), Flags.FURNACE); } diff --git a/src/main/java/world/bentobox/bentobox/lists/Flags.java b/src/main/java/world/bentobox/bentobox/lists/Flags.java index 3d7c06cb7..83aac66ec 100644 --- a/src/main/java/world/bentobox/bentobox/lists/Flags.java +++ b/src/main/java/world/bentobox/bentobox/lists/Flags.java @@ -69,6 +69,7 @@ public final class Flags { public static final Flag BREWING = new Flag.Builder("BREWING", Material.BREWING_STAND).build(); public static final Flag CHEST = new Flag.Builder("CHEST", Material.CHEST).build(); public static final Flag DISPENSER = new Flag.Builder("DISPENSER", Material.DISPENSER).build(); + public static final Flag DROPPER = new Flag.Builder("DROPPER", Material.DROPPER).build(); public static final Flag DOOR = new Flag.Builder("DOOR", Material.OAK_DOOR).defaultSetting(true).build(); public static final Flag TRAPDOOR = new Flag.Builder("TRAPDOOR", Material.OAK_TRAPDOOR).defaultSetting(true).build(); public static final Flag CRAFTING = new Flag.Builder("CRAFTING", Material.CRAFTING_TABLE).defaultSetting(true).build();