aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/DulkirMod.kt
diff options
context:
space:
mode:
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