Port & improve minimalviewbobbing
This commit is contained in:
parent
086d9fdbde
commit
a582584538
|
@ -1,11 +1,8 @@
|
||||||
package dev.resent.module.impl.misc;
|
package dev.resent.module.impl.misc;
|
||||||
|
|
||||||
|
import dev.resent.annotation.Module;
|
||||||
import dev.resent.module.base.Category;
|
import dev.resent.module.base.Category;
|
||||||
import dev.resent.module.base.Mod;
|
import dev.resent.module.base.Mod;
|
||||||
|
|
||||||
public class MinimalViewBobbing extends Mod {
|
@Module(name = "Minimal Bobbing", category = Category.MISC)
|
||||||
|
public class MinimalViewBobbing extends Mod { }
|
||||||
public MinimalViewBobbing() {
|
|
||||||
super("Minimal Bobbing", Category.MISC);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -634,7 +634,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
this.hurtCameraEffect(partialTicks);
|
this.hurtCameraEffect(partialTicks);
|
||||||
if (this.mc.gameSettings.viewBobbing) {
|
if (this.mc.gameSettings.viewBobbing || ModManager.minimalViewBobbing.isEnabled()) {
|
||||||
this.setupViewBobbing(partialTicks);
|
this.setupViewBobbing(partialTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -651,7 +651,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
||||||
this.hurtCameraEffect(partialTicks);
|
this.hurtCameraEffect(partialTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mc.gameSettings.viewBobbing) {
|
if (this.mc.gameSettings.viewBobbing || ModManager.minimalViewBobbing.isEnabled()) {
|
||||||
this.setupViewBobbing(partialTicks);
|
this.setupViewBobbing(partialTicks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user