summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/machines/HV/forcefield.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/HV/forcefield.lua b/technic/machines/HV/forcefield.lua
index fe9c8ea..dd9f8ef 100644
--- a/technic/machines/HV/forcefield.lua
+++ b/technic/machines/HV/forcefield.lua
@@ -68,7 +68,7 @@ end
local forcefield_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.get_meta(pos)
- local range = fields.range
+ local range = tonumber(fields.range) or 0
if fields.toggle then
if meta:get_int("enabled") == 1 then