Skip to content

Commit

Permalink
Apply some reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Jun 17, 2024
1 parent cd3920c commit df9c221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit df9c221

Please sign in to comment.