From e5fe27dd0a2fb447b8fb7d3e8a39b0bd92e20e38 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Wed, 2 Oct 2024 17:16:58 +0200 Subject: [PATCH] Fix Camo #102 --- .../mrbysco/forcecraft/blockentities/InfuserBlockEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/mrbysco/forcecraft/blockentities/InfuserBlockEntity.java b/src/main/java/com/mrbysco/forcecraft/blockentities/InfuserBlockEntity.java index e6d64f52..2c411815 100644 --- a/src/main/java/com/mrbysco/forcecraft/blockentities/InfuserBlockEntity.java +++ b/src/main/java/com/mrbysco/forcecraft/blockentities/InfuserBlockEntity.java @@ -571,8 +571,8 @@ private boolean applyModifier(ItemStack tool, ItemStack modifier, RecipeHolder effects = mod.getOrDefault(DataComponents.POTION_CONTENTS, PotionContents.EMPTY).customEffects(); - for (MobEffectInstance e : effects) { + PotionContents potionContents = mod.getOrDefault(DataComponents.POTION_CONTENTS, PotionContents.EMPTY); + for (MobEffectInstance e : potionContents.getAllEffects()) { if (e.getEffect() == MobEffects.NIGHT_VISION) { return addSightModifier(tool); }