mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-07-16 23:00:24 +02:00
Compare commits
2 Commits
2f535dd053
...
f1b6da3c20
Author | SHA1 | Date | |
---|---|---|---|
f1b6da3c20 | |||
418a30c89e |
@ -3,7 +3,7 @@ local safe_region_callback = {}
|
|||||||
--`count` is the number of nodes that would possibly be modified
|
--`count` is the number of nodes that would possibly be modified
|
||||||
--`callback` is a callback to run when the user confirms
|
--`callback` is a callback to run when the user confirms
|
||||||
local function safe_region(name, count, callback)
|
local function safe_region(name, count, callback)
|
||||||
if count < 10000 then
|
if count < 20000 then
|
||||||
return callback()
|
return callback()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -80,6 +80,9 @@ if minetest.global_exists("unified_inventory") then -- unified inventory install
|
|||||||
unified_inventory.register_button("worldedit_gui", {
|
unified_inventory.register_button("worldedit_gui", {
|
||||||
type = "image",
|
type = "image",
|
||||||
image = "inventory_plus_worldedit_gui.png",
|
image = "inventory_plus_worldedit_gui.png",
|
||||||
|
condition = function(player)
|
||||||
|
return minetest.check_player_privs(player:get_player_name(), {worldedit=true})
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
|
Reference in New Issue
Block a user