diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/backpacks/SlimefunBackpack.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/backpacks/SlimefunBackpack.java index 4f2a0e3500..61bbdb8e83 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/backpacks/SlimefunBackpack.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/backpacks/SlimefunBackpack.java @@ -69,6 +69,11 @@ public boolean isItemAllowed(@Nonnull ItemStack item, @Nullable SlimefunItem ite return false; } + // Bundles aren't allowed either + if (SlimefunTag.BUNDLES.isTagged(item.getType())) { + return false; + } + return !(itemAsSlimefunItem instanceof SlimefunBackpack); } diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/tags/SlimefunTag.java b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/tags/SlimefunTag.java index 7eab9b680f..2ea5cc5299 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/tags/SlimefunTag.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/tags/SlimefunTag.java @@ -277,7 +277,9 @@ public enum SlimefunTag implements Tag { /** * All tile entities. */ - TILE_ENTITIES; + TILE_ENTITIES, + + BUNDLES; /** * Lookup table for tag names. diff --git a/src/main/resources/tags/bundles.json b/src/main/resources/tags/bundles.json new file mode 100644 index 0000000000..5eb47d6959 --- /dev/null +++ b/src/main/resources/tags/bundles.json @@ -0,0 +1,21 @@ +{ + "values" : [ + "minecraft:bundle", + "minecraft:white_bundle", + "minecraft:orange_bundle", + "minecraft:magenta_bundle", + "minecraft:light_blue_bundle", + "minecraft:yellow_bundle", + "minecraft:lime_bundle", + "minecraft:pink_bundle", + "minecraft:gray_bundle", + "minecraft:light_gray_bundle", + "minecraft:cyan_bundle", + "minecraft:purple_bundle", + "minecraft:blue_bundle", + "minecraft:brown_bundle", + "minecraft:green_bundle", + "minecraft:red_bundle", + "minecraft:black_bundle" + ] +}