mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
add nil checks in tetris step function
This commit is contained in:
parent
ed41161554
commit
9f5cc15e62
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user