potential bug fixed
This commit is contained in:
parent
9b9aa43582
commit
c48edda1f0
@ -143,6 +143,7 @@ local function on_receive_fields(pos, formname, fields, player)
|
|||||||
elseif fields.button ~= nil then
|
elseif fields.button ~= nil then
|
||||||
local key_str = meta:get_string("key_str")
|
local key_str = meta:get_string("key_str")
|
||||||
local idx = tonumber(fields.button)
|
local idx = tonumber(fields.button)
|
||||||
|
if key_str and idx then
|
||||||
local tDest = get_station_list(key_str)[idx]
|
local tDest = get_station_list(key_str)[idx]
|
||||||
if tDest ~= nil then
|
if tDest ~= nil then
|
||||||
-- place booking if not already blocked
|
-- place booking if not already blocked
|
||||||
@ -157,6 +158,7 @@ local function on_receive_fields(pos, formname, fields, player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function on_destruct(pos)
|
local function on_destruct(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user