add nil checks in tetris step function

master^2
OgelGames 2020-02-26 10:43:11 +00:00
parent ed41161554
commit 9f5cc15e62
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
local S = homedecor.gettext
local shapes = {
@ -220,10 +219,10 @@ local function step(pos, fields)
if fields then
if fields.new then
new_game(pos)
else
elseif t then
key(fields)
end
else
elseif t then
run = tick()
end