Revert "Solved strange concurrency crashes due to players keypress-activating disabled buttons"

This reverts commit ee855b8d77de3d9486170f900433c5c6b433d32a.
This commit is contained in:
Yair Morgenstern 2023-06-28 19:01:37 +03:00
parent 4c28905e2c
commit 4a7f484900
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package com.unciv.ui.components.input
import com.badlogic.gdx.scenes.scene2d.Actor
import com.badlogic.gdx.scenes.scene2d.Touchable
import com.unciv.models.UncivSound
internal class ActorAttachments private constructor(actor: Actor) {
@ -38,7 +37,6 @@ internal class ActorAttachments private constructor(actor: Actor) {
fun activate(type: ActivationTypes): Boolean {
if (!this::activationActions.isInitialized) return false
if (this.actor.touchable != Touchable.enabled) return false
return activationActions.activate(type)
}