mirror of
https://github.com/minetest-mods/areas.git
synced 2025-01-14 12:00:26 +01:00
Fixed useWorldedit function.
This commit is contained in:
parent
e1e83c71da
commit
7a400bb1b9
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
|
||||
|
Loading…
Reference in New Issue
Block a user