1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2025-11-24 19:05:31 +01:00

Add support for games without default game (MTG) (#25)

* Add support for games without `default`

This adds support for games like Mineclonia, and any game xcompat adds
support for. The only asterix is dye support, the pattern for dyes has
been expanded for common dye mods, but if a new dye mod has different
dye names those might not work without an update to the pattern.

* Refactor & fix Farlands dye support

* Add some mcl colors, make names & their order consistent

* Fix old crafting bug & refacfor crafting

* Minor refactor & reorder for clarity

* Fix for Farlands `get_name` returning "" not nil

Farlands seems to return "" instead of nil/0 when no item is present.
By accounting for this, this commit fixes an issue where any empty slot
repaired the glider.

* Separate color handling to new module

* Luacheck fix

* Ignore empty `do end` luacheck warnings

* Replace `minetest.` with `core.`
This commit is contained in:
Medley
2025-10-19 16:22:36 +02:00
committed by GitHub
parent 6c23c135dc
commit 17419f721e
5 changed files with 186 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
name = hangglider
description = Adds a functional hang glider for exploring
depends = default, wool, dye
depends = xcompat
optional_depends = areas, player_monoids, pova, unifieddyes
min_minetest_version = 5.0