1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2025-07-17 15:50:19 +02:00

Donation box, a better saving, serval updates

This commit is contained in:
SmallJoker
2014-02-23 17:33:26 +01:00
parent f846f5624c
commit eec023f449
9 changed files with 115 additions and 7 deletions

View File

@ -155,6 +155,11 @@ minetest.register_node("bitchange:moneychanger", {
end
if(listname == "source") then
local stack_name = stack:get_name()
local inv = meta:get_inventory()
local inv_stack = inv:get_stack(listname, index)
if(inv_stack:get_name() ~= "") then
return 0
end
if(stack_name == "bitchange:mineninth" or stack_name == "bitchange:minecoin" or stack_name == "bitchange:minecoinblock") then
return moneychanger.update_fields(pos, listname, index, stack, false)
end