mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-06 18:10:24 +02:00
Fixed useWorldedit function.
This commit is contained in:
2
pos.lua
2
pos.lua
@ -120,7 +120,7 @@ minetest.register_chatcommand("area_pos", {
|
||||
|
||||
function areas.useWorldedit(playerName)
|
||||
if minetest.get_modpath("worldedit") then
|
||||
return nil == playerName or minetest.check_player_privs(playerName, "worldedit");
|
||||
return nil == playerName or minetest.check_player_privs(playerName, {worldedit = true});
|
||||
else
|
||||
return false;
|
||||
end
|
||||
|
Reference in New Issue
Block a user