Make team chests the color of the team

This commit is contained in:
rubenwardy 2015-12-01 00:38:30 +00:00
parent 3c9581bcf0
commit 2a07b2d18f
12 changed files with 44 additions and 39 deletions

View file

@ -39,11 +39,9 @@ minetest.register_node("tsm_chests:chest", {
sounds = default.node_sound_wood_defaults(),
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if player then
minetest.chat_send_player(player:get_player_name(), "You're not allowed to put things in chests!")
minetest.chat_send_player(player:get_player_name(),
"You're not allowed to put things in treasure chests!")
return 0
else
--minetest.chat_send_all("Error! Non player putting things in chests")
return -1
end
end,
on_construct = function(pos)

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B