projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704925a
)
Fix crash when entering a non-number for forcefield range
author
ShadowNinja
<noreply@gmail.com>
Sun, 27 Oct 2013 18:38:44 +0000
(14:38 -0400)
committer
ShadowNinja
<noreply@gmail.com>
Sun, 27 Oct 2013 18:39:45 +0000
(14:39 -0400)
technic/machines/HV/forcefield.lua
patch
|
blob
|
history
diff --git
a/technic/machines/HV/forcefield.lua
b/technic/machines/HV/forcefield.lua
index fe9c8ea1653de1158d6367e15a30dd66eb5fb0af..dd9f8ef6eb9485e592767759afc9b64ee944b387 100644
(file)
--- 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