diff --git a/src/main/java/com/terraformersmc/campanion/config/CampanionConfigManager.java b/src/main/java/com/terraformersmc/campanion/config/CampanionConfigManager.java index 37d0b992..422ed268 100644 --- a/src/main/java/com/terraformersmc/campanion/config/CampanionConfigManager.java +++ b/src/main/java/com/terraformersmc/campanion/config/CampanionConfigManager.java @@ -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 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; });