1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-28 06:12:00 +02:00

worldedit_brush: Remove "safe region" hack

This commit is contained in:
sfan5
2019-12-19 15:57:44 +01:00
parent 03bef18272
commit 7833b68c85
2 changed files with 28 additions and 16 deletions

View File

@ -1,11 +1,9 @@
local safe_region_callback = {}
worldedit._override_safe_regions = false -- internal use ONLY!
--`count` is the number of nodes that would possibly be modified
--`callback` is a callback to run when the user confirms
local function safe_region(name, count, callback)
if worldedit._override_safe_regions or count < 10000 then
if count < 10000 then
return callback()
end