1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-07 02:20:31 +02:00

//set appears to respect area ownership

hard depend on commonlib to soft depend on areas
This commit is contained in:
khonkhortisan
2014-04-19 17:15:25 -07:00
parent 11647fca93
commit c473fbb6c1
3 changed files with 49 additions and 23 deletions

View File

@ -291,7 +291,7 @@ minetest.register_chatcommand("/set", {
privs = {},
func = worldedit.privs(safe_region(function(name, param)
local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]
if worldedit.can_edit_volume(VoxelArea:iterp(pos1, pos2)) then
if worldedit.can_edit_volume(name, {pos1, pos2}) then
local node = get_node(name, param)
local count = worldedit.set(pos1, pos2, node)
worldedit.player_notify(name, count .. " nodes set")