5 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
846cf32a5d Module presence checks now use minetest.global_exists().
minetest.get_modpath() and generic Lua global variable checks
changed to minetest.global_exists() function for all mods
in modpack.

This is the first change after moving modpack development from
Minetest version 0.4.17.1 to 5.0.0.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-09 19:12:46 +01:00
Michal Cieslakiewicz
300ef43afa biogasmachines: get rid of public is_member_of() function.
biogasmachines.is_member_of() function replaced with sparse arrays.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-15 19:24:09 +01:00
Michal Cieslakiewicz
94ea89dc2f biogasmachines: functions: connection table moved out of function.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:24:26 +01:00
Michal Cieslakiewicz
94c9594961 biogasmachines: freezer: accept pipe connections from all sides.
Freezer now accepts pipe connections from all sides, thanks to improved
pipe detection logic in functions.lua. Function that checks if an element
belongs to an array has been made public to all module files, module
has been rewritten to utilize this function instead of duplicating
code.
What's left: textures, crafting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:16:18 +01:00
Michal Cieslakiewicz
847156e703 biogasmachines: further works on freezer.
Water detection code reorganized, new graphics for freezer added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-07 15:46:21 +01:00