summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessaE <vanessaezekowitz@gmail.com>2013-02-07 15:36:43 -0800
committerVanessaE <vanessaezekowitz@gmail.com>2013-02-07 15:36:43 -0800
commit26422fec7a7f84833072f151bb0cf39721447245 (patch)
treeef039918ed336f543f0ff0b145ff6c54d1c69f51
parent8513f4a8813a36fce61e306621fa333510818fbc (diff)
parente97d42e20df04f7c23d9e21201a46772186e8b33 (diff)
downloadpipeworks-26422fec7a7f84833072f151bb0cf39721447245.tar
pipeworks-26422fec7a7f84833072f151bb0cf39721447245.tar.gz
pipeworks-26422fec7a7f84833072f151bb0cf39721447245.tar.bz2
pipeworks-26422fec7a7f84833072f151bb0cf39721447245.tar.xz
pipeworks-26422fec7a7f84833072f151bb0cf39721447245.zip
Merge pull request #19 from Novatux/master
Bugfix
-rw-r--r--tubes.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tubes.lua b/tubes.lua
index f5f68ef..19139a3 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -332,6 +332,7 @@ register_tube("pipeworks:mese_tube","Mese pneumatic tube segment",mese_plain_tex
local meta=minetest.env:get_meta(pos)
local i
for key,_ in pairs(fields) do i=key end
+ if i==nil then return end
i=string.sub(i,-1)
newstate=1-meta:get_int("l"..i.."s")
meta:set_int("l"..i.."s",newstate)