Skip to content

Commit

Permalink
Better version of 1a584dc
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyn-Price authored Jan 18, 2022
1 parent 1a584dc commit 4fda4ae
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,10 @@ private static void load() {

if (FabricLoader.getInstance().isModLoaded("trinkets")) {
TrinketsApi.registerTrinketPredicate(new Identifier("campanion", "backpacks"), (stack, ref, entity) -> {
if (!config.isTrinketsBackpacksEnabled()) {
return TriState.DEFAULT;
}

SlotType slot = ref.inventory().getSlotType();
Tag<Item> tag = ItemTags.getTagGroup().getTagOrEmpty(new Identifier("campanion", "backpacks"));
if (tag.contains(stack.getItem())) {
return TriState.TRUE;
return config.isTrinketsBackpacksEnabled() ? TriState.TRUE : TriState.FALSE;
}
return TriState.DEFAULT;
});
Expand Down

0 comments on commit 4fda4ae

Please sign in to comment.