mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-01-02 14:28:10 +01:00
use the right variable to test on_receive_fields
This commit is contained in:
parent
cb8ecbf8cf
commit
f46de19ff0
@ -154,7 +154,7 @@ pipeworks.register_tube("pipeworks:teleport_tube", {
|
|||||||
meta:set_string("infotext", "unconfigured Teleportation Tube")
|
meta:set_string("infotext", "unconfigured Teleportation Tube")
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos,formname,fields,sender)
|
on_receive_fields = function(pos,formname,fields,sender)
|
||||||
if not new_channel then
|
if not fields.channel then
|
||||||
return -- ignore escaping or clientside manipulation of the form
|
return -- ignore escaping or clientside manipulation of the form
|
||||||
end
|
end
|
||||||
local new_channel = tostring(fields.channel):trim()
|
local new_channel = tostring(fields.channel):trim()
|
||||||
|
Loading…
Reference in New Issue
Block a user