mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
parent
a33fc82a4a
commit
70d8d04ee5
@ -164,12 +164,14 @@ public class BlockInteractionListener extends FlagListener {
|
||||
case YELLOW_SHULKER_BOX:
|
||||
case SHULKER_BOX:
|
||||
case FLOWER_POT:
|
||||
case DISPENSER:
|
||||
case DROPPER:
|
||||
case HOPPER:
|
||||
case HOPPER_MINECART:
|
||||
checkIsland(e, loc, Flags.CHEST);
|
||||
break;
|
||||
case DISPENSER:
|
||||
checkIsland(e, loc, Flags.DISPENSER);
|
||||
break;
|
||||
case ACACIA_DOOR:
|
||||
case BIRCH_DOOR:
|
||||
case DARK_OAK_DOOR:
|
||||
|
@ -39,12 +39,14 @@ public class InventoryListener extends FlagListener {
|
||||
checkIsland(e, e.getInventory().getLocation(), Flags.MOUNT_INVENTORY);
|
||||
}
|
||||
else if (inventoryHolder instanceof Chest
|
||||
|| inventoryHolder instanceof Dispenser
|
||||
|| 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 Furnace) {
|
||||
checkIsland(e, e.getInventory().getLocation(), Flags.FURNACE);
|
||||
}
|
||||
|
@ -68,6 +68,7 @@ public final class Flags {
|
||||
public static final Flag BED = new Flag.Builder("BED", Material.RED_BED).build();
|
||||
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 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();
|
||||
|
Loading…
Reference in New Issue
Block a user