From e97d42e20df04f7c23d9e21201a46772186e8b33 Mon Sep 17 00:00:00 2001 From: Novatux Date: Thu, 7 Feb 2013 17:21:35 +0100 Subject: [PATCH] Bugfix --- tubes.lua | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2