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:
6d31965
)
Fix crash with invalid radius
author
ShadowNinja
<shadowninja@minetest.net>
Fri, 15 Nov 2013 05:54:17 +0000
(
00:54
-0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Fri, 15 Nov 2013 05:54:17 +0000
(
00:54
-0500)
technic/machines/HV/quarry.lua
patch
|
blob
|
history
diff --git
a/technic/machines/HV/quarry.lua
b/technic/machines/HV/quarry.lua
index bf0cd094abbf605cd70b5f38d8d1bc3565844047..a62be8f2a8879fcb5538cd2932937852eebd5e63 100644
(file)
--- a/
technic/machines/HV/quarry.lua
+++ b/
technic/machines/HV/quarry.lua
@@
-20,7
+20,7
@@
end
local function quarry_receive_fields(pos, formname, fields, sender)
local meta = minetest.get_meta(pos)
- local size = tonumber(fields.size)
+ local size = tonumber(fields.size)
or 0
if fields.toggle then
if meta:get_int("enabled") == 0 then
@@
-30,8
+30,7
@@
local function quarry_receive_fields(pos, formname, fields, sender)
end
end
- -- Smallest size is 2. Anything less is asking for trouble.
- -- Largest is 8. It is a matter of pratical node handling.
+ -- Smallest size is 2. Largest is 8.
size = math.max(size, 2)
size = math.min(size, 8)