Fixed useWorldedit function.

This commit is contained in:
Joseph Pickard 2016-01-10 13:24:22 -05:00
parent e1e83c71da
commit 7a400bb1b9

View File

@ -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