Skip to content

Commit 085aa8b

Browse files
committed
new: fix shiny pots not working
1 parent 8215457 commit 085aa8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/cc/woverflow/glintcolorizer/mixin/OverflowGlintHandlerMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.spongepowered.asm.mixin.injection.Redirect;
1414

1515
@Pseudo
16-
@Mixin(targets = "cc.woverflow.overflowanimations.GlintHandler")
16+
@Mixin(targets = {"cc.polyfrost.overflowanimations.handlers.GlintHandler", "cc.woverflow.overflowanimations.GlintHandler"})
1717
public class OverflowGlintHandlerMixin {
1818

1919
@Dynamic("OverflowAnimations")
@@ -24,7 +24,7 @@ private static int modifyGlint(int constant) {
2424

2525
@Dynamic("OverflowAnimations")
2626
@Redirect(method = "renderGlint", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/GlStateManager;depthFunc(I)V"))
27-
private void shouldDepthFunc(int factor) {
27+
private static void shouldDepthFunc(int factor) {
2828
if (RenderItemHook.isRenderingGUI && RenderItemHook.itemStack.getItem() instanceof ItemPotion && GlintConfig.potionGlint) {
2929
return;
3030
}

0 commit comments

Comments
 (0)