Skip to content

Commit f43f034

Browse files
authored
Update RenderItemMixin_ShinyEffect.java
1 parent c427bac commit f43f034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/polyfrost/glintcolorizer/mixin/RenderItemMixin_ShinyEffect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public abstract class RenderItemMixin_ShinyEffect {
8989
if (RenderItemHook.INSTANCE.isPotionGlintEnabled() && RenderItemHook.INSTANCE.isRenderingInGUI() && RenderItemHook.INSTANCE.isPotionItem()) {
9090
return !GlintConfig.INSTANCE.getPotionGlintForeground() && !GlintConfig.INSTANCE.getPotionGlintBackground();
9191
}
92-
return instance.hasEffect();
92+
return instance.getItem() != null && instance.hasEffect();
9393
}
9494

9595
@Inject(

0 commit comments

Comments
 (0)