From df9c221cccef8d3a4ef7a30ab370735c08071327 Mon Sep 17 00:00:00 2001 From: 1F616EMO Date: Mon, 17 Jun 2024 18:51:10 +0800 Subject: [PATCH] Apply some reviews --- mods/default/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index f70d7842..769a13a3 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -296,7 +296,7 @@ minetest.register_abm({ local in_dig_up = false local mapgen_limit = tonumber(minetest.settings:get("mapgen_limit")) or 31007 function default.dig_up(pos, node, digger, max_height) - if in_dig_up then return end -- Avoid excess calls + if in_dig_up then return end -- Do not recurse if digger == nil then return end max_height = max_height or mapgen_limit