* added minetest 0.4 compatibility due the trasnlation missing support
* if translation is not supported use english on compat/mtg.lua
* improved the code of translation of the already init.lua
* this solves: closes https://github.com/minetest-mods/lavastuff/issues/13
* this solves: closes https://codeberg.org/minenux/lavastuff/issues/1
* close https://codeberg.org/minenux/lavastuff/issues/1
* real fix for compatibility later trasnlations
* real fix for https://github.com/minetest-mods/lavastuff/issues/13
* use native translator or intlib property as must be, but mock if both fails
* fix modname and use intlib depennds only in older engines
* autodetect mod name from minetest api
* added only intllib in depends.txt for older 0.4.X, mod.conf its for 5+
so due 5+ has built in internationalization its not necesary in that file
* added the depends only when necesary for intllib
* Update init.lua usage or MODNAME and MODPATH
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
* puff also uage ot the MODNAME in get translator
* update luacheck as suggested by lonewolf
i dont know how to avoid the usage of those variables.. but he suggested to just put those .. https://github.com/minetest-mods/lavastuff/pull/16#issuecomment-1036497969
* move intllib to others to do not fail in checks agains moderns engine
also added ',' at the en of the line
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
curiously technic chests and machines worked without this patch.
But itemframes and pedestals didn't. Neither did Fancyvendors and probably a lot of items I have not even tried.
This patch should solve the issue in general.
--Overwrites mobs_monster lava pick with new texture, if mobs_monstor is loaded, otherwise adds a lavastuff lava pick
--Added autosmelt functionality for if not using mobs_monster
--Clears craft for old lava pick recipe