mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-23 17:20:41 +01:00
Hide gui button in unified_inventory on missing privilege (#195)
this fixes #151
This commit is contained in:
parent
418a30c89e
commit
f1b6da3c20
@ -80,6 +80,9 @@ if minetest.global_exists("unified_inventory") then -- unified inventory install
|
||||
unified_inventory.register_button("worldedit_gui", {
|
||||
type = "image",
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user