diff options
Diffstat (limited to 'scripts/toy/play.groovy')
-rw-r--r-- | scripts/toy/play.groovy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy index f30f19c..c4e86a0 100644 --- a/scripts/toy/play.groovy +++ b/scripts/toy/play.groovy @@ -12,7 +12,7 @@ 'punishMultiple': (float)1.0, 'prop': load('toy') ?: [:] ]; - def apply = { activitity, use = null -> + final apply = { activitity, use = null -> if (!activitity) return; def val = activitity.func(); playBackgroundSound(null); @@ -20,7 +20,7 @@ use(val); } }; - def interval = { activities -> + final interval = { activities -> if (activities) { apply(activities[getRandom(activities.size())], null); } |