summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vacuum_tubes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/vacuum_tubes.lua b/vacuum_tubes.lua
index 1394a38..680e418 100644
--- a/vacuum_tubes.lua
+++ b/vacuum_tubes.lua
@@ -63,7 +63,7 @@ if pipeworks.enable_mese_sand_tube then
end,
on_receive_fields = function(pos,formname,fields,sender)
local meta = minetest.get_meta(pos)
- local _, dist = pcall(tonumber, fields.dist)
+ local dist = tonumber(fields.dist)
if dist and 0 <= dist and dist <= 8 then
meta:set_int("dist", dist)
meta:set_string("infotext", ("Adjustable Vacuuming Pneumatic Tube Segment (%dm)"):format(dist))