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:
parent
15f53ea124
commit
c6117e659d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user