-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hidden fireflies don't work outside vanilla biomes #2966
Comments
Relevant code: minetest_game/mods/fireflies/init.lua Lines 186 to 262 in 79d3807
and minetest_game/mods/fireflies/init.lua Lines 271 to 291 in 79d3807
Fireflies aren't supposed to be generated in those biomes, ergo no node timer loop can possibly be started, thus fireflies won't turn into hidden fireflies based on the light level. I'm kinda surprised fireflies use node timers started in |
Don't you mean an LBM? You don't want an ABM to happen constantly when node timers are already running. Regardless, what would the fix here be? |
I had intended replacing the node timers with the ABM entirely? |
Would it be possible to resolve this issue by creating an API for fireflies? A function of this API could be something like fireflies.register_fireflies_decoration(param1, param2, ..., biomes), where the biomes parameter is a list of biomes to register the decorations. Mods (Ethereal, Extra Biomes, etc) could use this API to add firefly decoration. |
After reconsideration, I think we should probably fix this by replacing the |
Tested on 5.5.1 Arch release(includes mtg in the package) and before that self compiled 5.5.0 with a stable branch of mtg.
Both have same results, fireflies work on vanilla biomes, but once used outside those the hide/unhide fuctions seem not to work.
I can get permanent fireflies by changing hidden fireflies to fireflies. Said fireflies will not change to their hidden variant.
Tested mods: Extra Biomes(ebiomes), Ethereal(ethereal).
The text was updated successfully, but these errors were encountered: