mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Revert "Solved strange concurrency crashes due to players keypress-activating disabled buttons"
This reverts commit ee855b8d77de3d9486170f900433c5c6b433d32a.
This commit is contained in:
parent
4c28905e2c
commit
4a7f484900
@ -1,7 +1,6 @@
|
|||||||
package com.unciv.ui.components.input
|
package com.unciv.ui.components.input
|
||||||
|
|
||||||
import com.badlogic.gdx.scenes.scene2d.Actor
|
import com.badlogic.gdx.scenes.scene2d.Actor
|
||||||
import com.badlogic.gdx.scenes.scene2d.Touchable
|
|
||||||
import com.unciv.models.UncivSound
|
import com.unciv.models.UncivSound
|
||||||
|
|
||||||
internal class ActorAttachments private constructor(actor: Actor) {
|
internal class ActorAttachments private constructor(actor: Actor) {
|
||||||
@ -38,7 +37,6 @@ internal class ActorAttachments private constructor(actor: Actor) {
|
|||||||
|
|
||||||
fun activate(type: ActivationTypes): Boolean {
|
fun activate(type: ActivationTypes): Boolean {
|
||||||
if (!this::activationActions.isInitialized) return false
|
if (!this::activationActions.isInitialized) return false
|
||||||
if (this.actor.touchable != Touchable.enabled) return false
|
|
||||||
return activationActions.activate(type)
|
return activationActions.activate(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user