Port & improve minimalviewbobbing

This commit is contained in:
ThisIsALegitUsername 2023-02-02 16:47:56 +00:00
parent 086d9fdbde
commit a582584538
2 changed files with 5 additions and 8 deletions

View File

@ -1,11 +1,8 @@
package dev.resent.module.impl.misc;
import dev.resent.annotation.Module;
import dev.resent.module.base.Category;
import dev.resent.module.base.Mod;
public class MinimalViewBobbing extends Mod {
public MinimalViewBobbing() {
super("Minimal Bobbing", Category.MISC);
}
}
@Module(name = "Minimal Bobbing", category = Category.MISC)
public class MinimalViewBobbing extends Mod { }

View File

@ -634,7 +634,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
GlStateManager.pushMatrix();
this.hurtCameraEffect(partialTicks);
if (this.mc.gameSettings.viewBobbing) {
if (this.mc.gameSettings.viewBobbing || ModManager.minimalViewBobbing.isEnabled()) {
this.setupViewBobbing(partialTicks);
}
@ -651,7 +651,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
this.hurtCameraEffect(partialTicks);
}
if (this.mc.gameSettings.viewBobbing) {
if (this.mc.gameSettings.viewBobbing || ModManager.minimalViewBobbing.isEnabled()) {
this.setupViewBobbing(partialTicks);
}
}