11 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
7f202f4301 Always set 'use_texture_alpha' field for nodes.
This eliminates issues and warnings for transparent textures when running
minetest version 5.4 or newer.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2021-04-14 15:02:28 +02:00
Michal Cieslakiewicz
22dee39390 biogasmachines: drop item when dug.
This fix brings machine back into player inventory when dug instead
of destroying it completely. Thanks to Joe7575 and TechWolf.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-09-25 09:33:17 +02:00
Michal Cieslakiewicz
bc8f65b29e biogasmachines: fix crash when digging a machine.
Apparently in recent versions of TechPack API after_dig_node() method
has been functionally replaced by on_dig_node(), so all Biogas Machines
caused server to crash during removal. This commit fixes that problem.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2020-09-24 10:47:48 +02:00
Michal Cieslakiewicz
e2b125e2ac biogasmachines: add tooltips to recipe hintbar icons.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-09 23:38:20 +01:00
Michal Cieslakiewicz
b30cff939c biogasmachines: active tray color box adjusted for 5.0.0.
Version 5.0.0 apparently modified inventory box so height value
0.9 for color background area in active tray was too big. Changed
to 0.88 which looks ok now.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-09 19:24:36 +01:00
Michal Cieslakiewicz
c4d8b46a25 biogasmachines: make infotext shorter.
Remove "Tubelib" string from infotext, we all know that these are
Tubelib devices. Keep this information in node description though
so searching in updated inventory managers shows these as Tubelib
items.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-15 17:46:01 +01:00
Michal Cieslakiewicz
728e443364 biogasmachines: minor code cleanup in function.
fuel_countdown_to_halt() function has been ported from Compactor
to remaining BiogasMachines consuming fuel - variable replaced
with direct metadata function call.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-01 17:36:57 +01:00
Michal Cieslakiewicz
2201310971 biogasmachines: keep_running call unified to default value.
Call to keep_running() function from Tubelib2 API now always
uses default value of 1 regardless of machine type and actual
number of processed items. This has been ported from Compactor
to other BiogasMachines.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-01 17:27:01 +01:00
Michal Cieslakiewicz
9ea6941042 biogasmachines: jetfurnace: Tubelib v2 adaptation, improvements, bugfix.
JetFurnace code has been derived from new gasfurnace so all new logic
and bugfixes are also implemented here.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-30 12:25:42 +01:00
Michal Cieslakiewicz
64f469f4c4 biogasmachines: remove artifact function call.
During code replication from base freezer.lua to other Biogas Machines
in on_punch() callback a unnecessary call to biogasmachines.is_pipe_with_water()
function has been overlooked and left over. This commit removes that call
for gasifier and furnaces.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-13 15:25:30 +01:00
Michal Cieslakiewicz
3e9996a6e2 biogasmachines: gas jet upgraded furnace added.
Jet Furnace that is 2 times faster than standard version in both item cooking
time and Biogas consumption. Additionally it supports stack pulling from output
tray (can be paired with High Perf Pusher) and longer auto-poweroff delay
(to allow fuel to reach device before it automatically shuts down).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-03 15:35:44 +01:00