summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-02-07 17:21:35 +0100
committerNovatux <nathanael.courant@laposte.net>2013-02-07 17:21:35 +0100
commite97d42e20df04f7c23d9e21201a46772186e8b33 (patch)
treefc3b2372aec51146ed3c8dd9867e3bc1e1a878fe
parent660feea1479a67144b0363086ca6fbdc78785f36 (diff)
downloadpipeworks-e97d42e20df04f7c23d9e21201a46772186e8b33.tar
pipeworks-e97d42e20df04f7c23d9e21201a46772186e8b33.tar.gz
pipeworks-e97d42e20df04f7c23d9e21201a46772186e8b33.tar.bz2
pipeworks-e97d42e20df04f7c23d9e21201a46772186e8b33.tar.xz
pipeworks-e97d42e20df04f7c23d9e21201a46772186e8b33.zip
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)