baborium recipe bugfix, legacy code removed

This commit is contained in:
Joachim Stolberg 2020-06-21 09:57:03 +02:00
parent 56c84fcbd2
commit e8f0bbc511
4 changed files with 6 additions and 13 deletions

View File

@ -182,13 +182,7 @@ end
local function empty_on_punch(pos, nvm, full_container, item_count)
nvm.liquid = nvm.liquid or {}
nvm.liquid.amount = nvm.liquid.amount or 0
local lqd_def
-- handle legacy items
if IsLiquid[full_container] then
lqd_def = {inv_item = full_container, size = (item_count or 1), container = ""}
else
lqd_def = get_liquid_def(full_container)
end
local lqd_def = get_liquid_def(full_container)
local ndef_lqd = LQD(pos)
if lqd_def and ndef_lqd then
local tank_size = ndef_lqd.capa or 0

View File

@ -43,8 +43,9 @@ minetest.register_ore({
y_max = -250,
})
techage.furnace.register_recipe({
minetest.register_craft({
type = 'cooking',
output = 'techage:baborium_ingot',
recipe = {'techage:baborium_lump'},
time = 3,
})
recipe = 'techage:baborium_lump',
cooktime = 5,
})

View File

@ -31,7 +31,6 @@ minetest.register_craftitem("techage:cylinder_large_hydrogen", {
stack_max = 1,
})
techage.register_liquid("techage:hydrogen", "", 1, "techage:hydrogen")
techage.register_liquid("techage:cylinder_small_hydrogen", "techage:ta3_cylinder_small", 1, "techage:hydrogen")
techage.register_liquid("techage:cylinder_large_hydrogen", "techage:ta3_cylinder_large", 6, "techage:hydrogen")

View File

@ -132,6 +132,5 @@ minetest.register_craftitem("techage:ta3_canister_oil", {
})
techage.register_liquid("techage:bucket_oil", "bucket:bucket_empty", 1, "techage:oil_source")
techage.register_liquid("techage:oil_source", "", 1, "techage:oil_source")
techage.register_liquid("techage:ta3_barrel_oil", "techage:ta3_barrel_empty", 10, "techage:oil_source")
techage.register_liquid("techage:ta3_canister_oil", "techage:ta3_canister_empty", 1, "techage:oil_source")