From cb8ecbf8cf96338e61bb87a34e05f99556444252 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 4 Feb 2015 15:37:20 +0100 Subject: don't tostring "nil" in the teleportation tube on escape --- teleport_tube.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/teleport_tube.lua b/teleport_tube.lua index 8647e8d..8ab4aeb 100644 --- a/teleport_tube.lua +++ b/teleport_tube.lua @@ -154,11 +154,10 @@ pipeworks.register_tube("pipeworks:teleport_tube", { meta:set_string("infotext", "unconfigured Teleportation Tube") end, on_receive_fields = function(pos,formname,fields,sender) - local new_channel = tostring(fields.channel) if not new_channel then return -- ignore escaping or clientside manipulation of the form end - new_channel = new_channel:trim() + local new_channel = tostring(fields.channel):trim() local meta = minetest.get_meta(pos) local can_receive = meta:get_int("can_receive") -- cgit v1.2.3