forked from mtcontrib/pipeworks
Bugfix
This commit is contained in:
parent
660feea147
commit
e97d42e20d
@ -332,6 +332,7 @@ register_tube("pipeworks:mese_tube","Mese pneumatic tube segment",mese_plain_tex
|
|||||||
local meta=minetest.env:get_meta(pos)
|
local meta=minetest.env:get_meta(pos)
|
||||||
local i
|
local i
|
||||||
for key,_ in pairs(fields) do i=key end
|
for key,_ in pairs(fields) do i=key end
|
||||||
|
if i==nil then return end
|
||||||
i=string.sub(i,-1)
|
i=string.sub(i,-1)
|
||||||
newstate=1-meta:get_int("l"..i.."s")
|
newstate=1-meta:get_int("l"..i.."s")
|
||||||
meta:set_int("l"..i.."s",newstate)
|
meta:set_int("l"..i.."s",newstate)
|
||||||
|
Loading…
Reference in New Issue
Block a user