9 Commits

Author SHA1 Message Date
LoneWolfHT
d3a0da6921 Fix .luacheckrc warnings 2022-02-23 21:18:07 -08:00
3eacc17e73
Fix 0.4 compatibility (#16)
* 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>
2022-02-23 21:13:38 -08:00
LoneWolfHT
2019afbbc3 Cleanup. Mineclone2 fixes. Start Nodecore support 2022-01-02 11:18:50 -08:00
LoneWolfHT
46dc08bc6f Fix luacheck warnings 2021-07-29 11:21:35 -07:00
LoneWolfHT
f9d2556204 Add support for MineClone2 2020-05-20 20:05:13 -07:00
LoneWolfHT
17755a2e46 Remove something from luacheck 2020-05-20 10:12:24 -07:00
Panquesito7
d331b6bf6e
Various luacheck fixes 2020-01-16 22:43:51 -06:00
LoneWolfHT
658c27414c luacheck fixes 2019-01-25 16:43:12 -08:00
LoneWolfHT
d6588615a0 Add some missing recipes and give sword a special ability 2019-01-04 19:04:32 -08:00