diff options
author | Moulberry <jjenour@student.unimelb.edu.au> | 2021-03-04 21:16:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 21:16:37 +0800 |
commit | 06c3c7fcfd8f65e2a30f81626457f4180ea52a36 (patch) | |
tree | f9ca8bffeab3fbdef3b623dd28dd77809552cbef /src | |
parent | 9fa454949a58eb70c328ff75a37c3eb3755df6f4 (diff) | |
parent | 9c00dd875203f00889cd7ec30b5ee62cbe693d21 (diff) | |
download | NotEnoughUpdates-06c3c7fcfd8f65e2a30f81626457f4180ea52a36.tar.gz NotEnoughUpdates-06c3c7fcfd8f65e2a30f81626457f4180ea52a36.tar.bz2 NotEnoughUpdates-06c3c7fcfd8f65e2a30f81626457f4180ea52a36.zip |
Merge pull request #158 from DJtheRedstoner/master2.0-PRE26
fix: block destroy progress positions rendered incorrectly with smooth aote
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinRenderGlobal.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinRenderGlobal.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinRenderGlobal.java index 1b2b99ec..a11bf052 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinRenderGlobal.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinRenderGlobal.java @@ -79,4 +79,32 @@ public class MixinRenderGlobal { } } + //drawBlockDamageTexture + @ModifyVariable(method="drawBlockDamageTexture", at=@At(value="STORE"), ordinal = 0) + public double drawBlockDamageTexture_d0(double d0) { + Vector3f currentPosition = CustomItemEffects.INSTANCE.getCurrentPosition(); + if(currentPosition != null) { + return currentPosition.x; + } + return d0; + } + + @ModifyVariable(method="drawBlockDamageTexture", at=@At(value="STORE"), ordinal = 1) + public double drawBlockDamageTexture_d1(double d1) { + Vector3f currentPosition = CustomItemEffects.INSTANCE.getCurrentPosition(); + if(currentPosition != null) { + return currentPosition.y; + } + return d1; + } + + @ModifyVariable(method="drawBlockDamageTexture", at=@At(value="STORE"), ordinal = 2) + public double drawBlockDamageTexture_d2(double d2) { + Vector3f currentPosition = CustomItemEffects.INSTANCE.getCurrentPosition(); + if(currentPosition != null) { + return currentPosition.z; + } + return d2; + } + } |