diff options
author | inglettronald <inglettronald@gmail.com> | 2023-05-19 05:39:34 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-05-19 05:39:34 -0500 |
commit | 7315266bdd84a2c0ec68f0934830a093c36dd995 (patch) | |
tree | 215dc844434563c7d5c9d2d260e69d1ee24a5c99 /src/main/java/dulkirmod | |
parent | 6e1312acd491ea92144eff1da3652b968fd5fdcc (diff) | |
download | DulkirMod-7315266bdd84a2c0ec68f0934830a093c36dd995.tar.gz DulkirMod-7315266bdd84a2c0ec68f0934830a093c36dd995.tar.bz2 DulkirMod-7315266bdd84a2c0ec68f0934830a093c36dd995.zip |
Added stuff for pitch/yaw outside garden
Diffstat (limited to 'src/main/java/dulkirmod')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinEntityRenderer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinEntityRenderer.java b/src/main/java/dulkirmod/mixins/MixinEntityRenderer.java index d8cb05c..f754f2c 100644 --- a/src/main/java/dulkirmod/mixins/MixinEntityRenderer.java +++ b/src/main/java/dulkirmod/mixins/MixinEntityRenderer.java @@ -1,6 +1,7 @@ package dulkirmod.mixins; import dulkirmod.features.HurtCamSlider; +import dulkirmod.features.ViewBobbing; import net.minecraft.client.renderer.EntityRenderer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -15,4 +16,10 @@ public class MixinEntityRenderer { if (HurtCamSlider.INSTANCE.renderHurt(partialTicks)) ci.cancel(); } + + @Inject(method = "setupViewBobbing", at = @At("HEAD"), cancellable = true) + private void modifyViewBobbing(float partialTicks, CallbackInfo ci) { + if (ViewBobbing.INSTANCE.renderBob(partialTicks)) + ci.cancel(); + } } |