Apply some reviews

This commit is contained in:
1F616EMO 2024-06-17 18:51:10 +08:00
parent cd3920c61b
commit df9c221ccc
No known key found for this signature in database
GPG key ID: EF52EFA8E05859B2

View file

@ -296,7 +296,7 @@ minetest.register_abm({
local in_dig_up = false local in_dig_up = false
local mapgen_limit = tonumber(minetest.settings:get("mapgen_limit")) or 31007 local mapgen_limit = tonumber(minetest.settings:get("mapgen_limit")) or 31007
function default.dig_up(pos, node, digger, max_height) 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 if digger == nil then return end
max_height = max_height or mapgen_limit max_height = max_height or mapgen_limit