From 615d1e758c84c89cf4d4b4937234068286ef83da Mon Sep 17 00:00:00 2001 From: minefaco <63024226+minefaco@users.noreply.github.com> Date: Sun, 21 Nov 2021 12:00:23 -0500 Subject: [PATCH] Fixed possible crash for nil comparison --- chiseling_machine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chiseling_machine.lua b/chiseling_machine.lua index cabd0b3..4fbcc08 100644 --- a/chiseling_machine.lua +++ b/chiseling_machine.lua @@ -1,4 +1,4 @@ -local max_stack = tonumber(minetest.settings:get("default_stack_max")) +local max_stack = tonumber(minetest.settings:get("default_stack_max")) or 99 --************************************************************************* minetest.register_node("stripped_tree:chiseling_machine", { description = "Chiseladora para troncos",