diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-24 14:19:18 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-24 14:19:18 +0200 |
commit | 8b0698abc1290cbdbfef3c8b48a2dc7a0388c9d1 (patch) | |
tree | a135f4198502c8615379763788bcc4f254dfc29f /config | |
parent | 1213e1e2831805ebb5d193702e02c59c2927e54a (diff) | |
download | roflnauts-8b0698abc1290cbdbfef3c8b48a2dc7a0388c9d1.zip roflnauts-8b0698abc1290cbdbfef3c8b48a2dc7a0388c9d1.tar.gz roflnauts-8b0698abc1290cbdbfef3c8b48a2dc7a0388c9d1.tar.bz2 |
Blink button, fix empty error
Diffstat (limited to 'config')
-rw-r--r-- | config/menuselect.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/menuselect.lua b/config/menuselect.lua index 8d646ba..c3a05c1 100644 --- a/config/menuselect.lua +++ b/config/menuselect.lua @@ -23,7 +23,12 @@ return { :setText("Force start") :setPosition(bx,101) :set("active", function (self) - changeScene(World:new(nil,naut_selector:getFullSelection(false))) + local nauts = naut_selector:getFullSelection(false) + if #nauts > 1 then + changeScene(World:new(nil, nauts)) + else + self:blink() + end end) , button:new(menu) |