1
0
mirror of https://github.com/MinetestForFun/minercantile.git synced 2025-06-30 23:30:24 +02:00

add shop privs, others shop type, add shop type name in node formspec

This commit is contained in:
2016-06-11 15:49:49 +02:00
parent 6ce6b42b92
commit 104d281fd9
3 changed files with 13 additions and 13 deletions

View File

@ -99,7 +99,7 @@ minetest.register_node("minercantile:bancomatic", {
end,
can_dig = function(pos, player)
local name = player:get_player_name()
return (minetest.check_player_privs(name, {protection_bypass = true}) or minetest.check_player_privs(name, {server = true}))
return (minetest.check_player_privs(name, {protection_bypass = true}) or minetest.check_player_privs(name, {shop = true}))
end,
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
return 0