Don't process android ability key logic if we are a spectator

server already ignores feature activation if we are a spectator
This commit is contained in:
DBotThePony 2023-07-18 13:19:03 +07:00
parent 15f53ea124
commit c6117e659d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -25,7 +25,7 @@ object AndroidAbilityKeyMapping : KeyMapping("key.otm.android_ability", KeyConfl
val old = this.isDown val old = this.isDown
super.setDown(isDown) super.setDown(isDown)
if (old != isDown) { if (old != isDown && minecraft.player?.isSpectator == false) {
if (isDown) { if (isDown) {
val capability = minecraft.player?.matteryPlayer ?: return val capability = minecraft.player?.matteryPlayer ?: return