aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/HurtCamSlider.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/HurtCamSlider.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt b/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt
index 7237d95..4ba4798 100644
--- a/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt
+++ b/src/main/kotlin/dulkirmod/features/HurtCamSlider.kt
@@ -1,14 +1,14 @@
package dulkirmod.features
import dulkirmod.DulkirMod.Companion.mc
-import dulkirmod.config.Config
+import dulkirmod.config.DulkirConfig
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.entity.EntityLivingBase
import net.minecraft.util.MathHelper
object HurtCamSlider {
fun renderHurt(partialTicks: Float): Boolean {
- if (!Config.hurtCamSlider) return false
+ if (!DulkirConfig.hurtCamSlider) return false
if (mc.renderViewEntity is EntityLivingBase) {
val entitylivingbase = mc.renderViewEntity as EntityLivingBase
var f: Float = (entitylivingbase.hurtTime.toFloat() - partialTicks)
@@ -23,7 +23,7 @@ object HurtCamSlider {
f = MathHelper.sin(f * f * f * f * Math.PI.toFloat())
val f2 = entitylivingbase.attackedAtYaw
GlStateManager.rotate(-f2, 0.0f, 1.0f, 0.0f)
- GlStateManager.rotate(-f * 14.0f * Config.hurtCamIntensity, 0.0f, 0.0f, 1.0f)
+ GlStateManager.rotate(-f * 14.0f * DulkirConfig.hurtCamIntensity, 0.0f, 0.0f, 1.0f)
GlStateManager.rotate(f2, 0.0f, 1.0f, 0.0f)
}
return true