summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node_builders.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_builders.lua b/node_builders.lua
index 08a1727..4ca62ae 100644
--- a/node_builders.lua
+++ b/node_builders.lua
@@ -204,8 +204,8 @@ minetest.register_node("digtron:builder", {
local extrusion_count = 0
local extrusion_target = meta:get_int("extrusion")
- if extrusion_target == nil or extrusion_target > 100 then
- extrusion_target = 100 -- failsafe
+ if extrusion_target == nil or extrusion_target < 1 or extrusion_target > 100 then
+ extrusion_target = 1 -- failsafe
end
local return_items = {}
@@ -255,8 +255,8 @@ minetest.register_node("digtron:builder", {
local extrusion_count = 0
local extrusion_target = meta:get_int("extrusion")
- if extrusion_target == nil or extrusion_target > 100 then
- extrusion_target = 100 -- failsafe
+ if extrusion_target == nil or extrusion_target < 1 or extrusion_target > 100 then
+ extrusion_target = 1 -- failsafe
end
local built_count = 0