From c6aa2840d34d99f92889dc21860d54bffcb114b4 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 10 Sep 2017 21:35:26 -0600 Subject: [PATCH] add further out-of-range failsafes for extrusion setting --- node_builders.lua | 8 ++++---- 1 file 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