Skip to content

Commit d41c2ff

Browse files
committed
fix overflow animations compat
1 parent 538dc94 commit d41c2ff

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ org.gradle.jvmargs=-Xmx2G
33

44
# Define project properties.
55
mod_name=REDACTION
6-
mod_ver=1.3.3
6+
mod_ver=1.3.4
77

88
loom.platform = forge

src/main/java/net/wyvest/redaction/mixin/OverflowGlintHandlerMixin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
package net.wyvest.redaction.mixin;
22

33
import net.minecraft.client.renderer.RenderHelper;
4+
import net.minecraft.client.renderer.entity.RenderItem;
45
import net.minecraft.client.resources.model.IBakedModel;
56
import net.wyvest.redaction.config.RedactionConfig;
67
import org.spongepowered.asm.mixin.Mixin;
78
import org.spongepowered.asm.mixin.Pseudo;
89
import org.spongepowered.asm.mixin.injection.At;
910
import org.spongepowered.asm.mixin.injection.Inject;
10-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
11+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
1112

1213
@Pseudo
1314
@Mixin(targets = "cc.woverflow.overflowanimations.GlintHandler", remap = false)
1415
public class OverflowGlintHandlerMixin {
15-
@Inject(method = "renderGlint", at = @At("RETURN"))
16-
private static void afterRenderEffect(IBakedModel model, CallbackInfo ci) {
16+
@Inject(method = "renderGlint", at = @At("TAIL"))
17+
private static void afterRenderEffect(RenderItem instance, IBakedModel model, CallbackInfoReturnable<Boolean> ci) {
1718
if (RedactionConfig.INSTANCE.getDisableHandLighting()) {
1819
RenderHelper.disableStandardItemLighting();
1920
}

src/main/java/net/wyvest/redaction/mixin/RenderItemMixin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.wyvest.redaction.mixin;
22

3+
import net.minecraft.client.Minecraft;
34
import net.minecraft.client.renderer.RenderHelper;
45
import net.minecraft.client.renderer.entity.RenderItem;
56
import net.minecraft.client.resources.model.IBakedModel;
@@ -18,7 +19,7 @@ private void beforeRenderEffect(IBakedModel model, CallbackInfo ci) {
1819
}
1920
}
2021

21-
@Inject(method = "renderEffect", at = @At("RETURN"))
22+
@Inject(method = "renderEffect", at = @At("TAIL"))
2223
private void afterRenderEffect(IBakedModel model, CallbackInfo ci) {
2324
if (RedactionConfig.INSTANCE.getDisableHandLighting()) {
2425
RenderHelper.disableStandardItemLighting();

src/main/kotlin/net/wyvest/redaction/Redaction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object Redaction {
2727

2828

2929
const val NAME = "REDACTION"
30-
const val VERSION = "1.3.3"
30+
const val VERSION = "1.3.4"
3131
const val ID = "redaction"
3232
val modDir = File(File("./W-OVERFLOW"), NAME)
3333
val isPatcher by lazy {

0 commit comments

Comments
 (0)