diff --git a/basic_machines/quarry.lua b/basic_machines/quarry.lua index 33be5ec..94f863f 100644 --- a/basic_machines/quarry.lua +++ b/basic_machines/quarry.lua @@ -26,7 +26,7 @@ local CRD = function(pos) return (minetest.registered_nodes[techage.get_node_lvm local S = techage.S -local CYCLE_TIME = 3 +local CYCLE_TIME = 4 local STANDBY_TICKS = 4 local COUNTDOWN_TICKS = 4 diff --git a/basis/nodedata_sqlite.lua b/basis/nodedata_sqlite.lua index dcc9cfa..8540365 100644 --- a/basis/nodedata_sqlite.lua +++ b/basis/nodedata_sqlite.lua @@ -72,8 +72,11 @@ end local api = {} function api.store_mapblock_data(key, mapblock_data) - if use_marshal then - set_block(key, marshal.encode(mapblock_data)) + if use_marshal and mapblock_data then + local data = marshal.encode(mapblock_data) + if data then + set_block(key, data) + end else set_block(key, minetest.serialize(mapblock_data)) end diff --git a/items/cracking.lua b/items/cracking.lua index 284bda4..52c98f3 100644 --- a/items/cracking.lua +++ b/items/cracking.lua @@ -10,7 +10,8 @@ Cracking breaks long chains of hydrocarbons into short chains using a catalyst. Gibbsite powder serves as a catalyst (is not consumed). - It can be used to convert bitumen into fueloil, fueloil into naphtha and naphtha into gasoline. + It can be used to convert bitumen into fueloil, fueloil into naphtha, naphtha into gasoline, + and gasoline into gas. In hydrogenation, pairs of hydrogen atoms are added to a molecule to convert short-chain hydrocarbons into long ones. @@ -45,6 +46,22 @@ techage.recipes.add("ta4_doser", { catalyst = "techage:gibbsite_powder", }) +techage.recipes.add("ta4_doser", { + output = "techage:isobutane 1", + input = { + "techage:gasoline 1", + }, + catalyst = "techage:gibbsite_powder", +}) + +techage.recipes.add("ta4_doser", { + output = "techage:gas 1", + input = { + "techage:isobutane 1", + }, + catalyst = "techage:gibbsite_powder", +}) + -- Hydrogenate techage.recipes.add("ta4_doser", { output = "techage:isobutane 1",