Craft recipe update

This commit is contained in:
raymoo 2016-02-26 20:55:48 -08:00
parent 81da10ae6c
commit e89f8878f7
3 changed files with 25 additions and 4 deletions

10
atm.lua
View File

@ -204,3 +204,13 @@ minetest.register_node("global_exchange:atm", {
minetest.show_formspec(p_name, atm_form, main_menu)
end,
})
minetest.register_craft( {
output = "global_exchange:atm",
recipe = {
{ "default:stone", "default:stone", "default:stone" },
{ "default:stone", "default:gold_ingot", "default:stone" },
{ "default:stone", "default:stone", "default:stone" },
}
})

View File

@ -126,8 +126,8 @@ minetest.register_node("global_exchange:mailbox", {
minetest.register_craft( {
output = "global_exchange:mailbox",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:gold_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:stone", "default:gold_ingot", "default:stone" },
{ "default:stone", "default:chest", "default:stone" },
{ "default:stone", "default:stone", "default:stone" },
}
})

View File

@ -516,7 +516,8 @@ local function handle_own_orders(player, formname, fields)
end
end
local succ, err = exchange:cancel_order(p_name, row.Id)
local succ, err =
exchange:cancel_order(p_name, row.Id, row.Type, row.Item, row.Amount, row.Rate)
if succ then
table.remove(results, idx)
if row.Type == "sell" then
@ -582,3 +583,13 @@ minetest.register_node("global_exchange:exchange", {
show_main(p_name)
end,
})
minetest.register_craft( {
output = "global_exchange:exchange",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:mese_crystal", "default:steel_ingot", "default:diamond" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
}
})