Add chat peeking keybinding

This commit is contained in:
nea
2023-09-04 16:28:00 +02:00
parent c912ee90d3
commit 19231489ad
3 changed files with 30 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ object Fixes : FirmamentFeature {
object TConfig : ManagedConfig(identifier) {
val fixUnsignedPlayerSkins by toggle("player-skins") { true }
val autoSprint by toggle("auto-sprint") { false }
val peekChat by keyBindingWithDefaultUnbound("peek-chat")
}
override val config: ManagedConfig
@@ -35,4 +36,8 @@ object Fixes : FirmamentFeature {
override fun onLoad() {
}
fun shouldPeekChat(): Boolean {
return TConfig.peekChat.isPressed(atLeast = true)
}
}