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); }