Merge branch 'master' into 'master'

Add nil checks in tetris step function

Closes #22

See merge request VanessaE/homedecor_modpack!9
This commit is contained in:
Vanessa Dannenberg 2020-02-26 14:13:16 +00:00
commit 9ec3eab6f4

View File

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