diff options
-rw-r--r-- | craftitems.lua | 1 | ||||
-rw-r--r-- | shop.lua | 9 | ||||
-rw-r--r-- | textures/minegeld_1000_smacker.png | bin | 0 -> 3319 bytes |
3 files changed, 6 insertions, 4 deletions
diff --git a/craftitems.lua b/craftitems.lua index 02b6e54..c9d4f76 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -35,6 +35,7 @@ end register_comm_currency("minegeld_1000_gabriel", "1000 MineGeld Note, Featuring Gabriel")
register_comm_currency("minegeld_1000_nadine", "1000 MineGeld Note, Featuring Nadine")
+register_comm_currency("minegeld_1000_smacker", "1000 MineGeld Note, Featuring Smacker")
register_comm_currency("minegeld_1000_och_noe", "1000 MineGeld Note, Featuring Och Nö")
register_comm_currency("minegeld_1000_melinka", "1000 MineGeld Note, Featuring Melinka Town")
register_comm_currency("minegeld_1000_mese_miracle", "1000 MineGeld Note, Featuring Mese Fairy Miracle")
@@ -195,13 +195,14 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields) end
end
if can_exchange then
+ local it
for i, item in pairs(wants) do
- pinv:remove_item("customer_gives",item)
- minv:add_item("customers_gave",item)
+ it = pinv:remove_item("customer_gives",item)
+ minv:add_item("customers_gave",it)
end
for i, item in pairs(gives) do
- minv:remove_item("stock",item)
- pinv:add_item("customer_gets",item)
+ it = minv:remove_item("stock",item)
+ pinv:add_item("customer_gets",it)
end
minetest.chat_send_player(name,S("Exchanged!"))
else
diff --git a/textures/minegeld_1000_smacker.png b/textures/minegeld_1000_smacker.png Binary files differnew file mode 100644 index 0000000..014c1b5 --- /dev/null +++ b/textures/minegeld_1000_smacker.png |