aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/DulkirMod.kt
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-10-03 00:04:02 -0500
committeringle <inglettronald@gmail.com>2022-10-03 00:04:02 -0500
commit03462869f508f549eff1971262d708ffc7d3bfbc (patch)
treec559e80cf9108d528d4b40c7261f51e3ff1b78ac /src/main/kotlin/dulkirmod/DulkirMod.kt
parent830d3185f6c0c4ac14c957c03e982badb40fa053 (diff)
downloadDulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.tar.gz
DulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.tar.bz2
DulkirMod-03462869f508f549eff1971262d708ffc7d3bfbc.zip
-Added Skip reverse 3rd person
-Implemented configs of Custom Animations
Diffstat (limited to 'src/main/kotlin/dulkirmod/DulkirMod.kt')
-rw-r--r--src/main/kotlin/dulkirmod/DulkirMod.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt
index 2647d9f..d0ea1e5 100644
--- a/src/main/kotlin/dulkirmod/DulkirMod.kt
+++ b/src/main/kotlin/dulkirmod/DulkirMod.kt
@@ -68,6 +68,9 @@ class DulkirMod {
@SubscribeEvent
fun onTick(event: ClientTickEvent) {
+ if (Config.noReverse3rdPerson && mc.gameSettings.thirdPersonView == 2)
+ mc.gameSettings.thirdPersonView = 0
+
if (event.phase != TickEvent.Phase.START || display == null) return
mc.displayGuiScreen(display)
display = null