mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
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:
commit
9ec3eab6f4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user