1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2025-07-17 15:50:19 +02:00
This commit is contained in:
SmallJoker
2014-02-06 20:40:41 +01:00
parent 2d36903ffe
commit fecfaaf975
2 changed files with 14 additions and 8 deletions

View File

@ -111,6 +111,9 @@ minetest.register_node("bitchange:warehouse", {
end,
on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.get_meta(pos)
if(not bitchange_has_access(meta:get_string("owner"), sender:get_player_name())) then
return
end
if(fields.inv_lv1) then
meta:set_string("formspec", "size[12,10;]"..
"label[0,0;Warehouse]"..