Skip to content

Commit

Permalink
1.21.3 Bundles aren't allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Nov 30, 2024
1 parent c8f9181 commit 25da22e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ public enum SlimefunTag implements Tag<Material> {
/**
* All tile entities.
*/
TILE_ENTITIES;
TILE_ENTITIES,

BUNDLES;

/**
* Lookup table for tag names.
Expand Down
21 changes: 21 additions & 0 deletions src/main/resources/tags/bundles.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 25da22e

Please sign in to comment.