Closed mahmutelmas06 closed 1 year ago
if you insert the mapgen function into that table instead of using minetest.register_on_generated, you can make the function become executed earlier https://github.com/HybridDog/fractured/blob/wsmapgen/mods/eastside/init.lua#L98
Ought to have been fixed in the meantime. The variables are now local.
As for register on generated - there isn't much I can do. The mod is supposed to work with as many mapgens as possible. It wants to work after mapgen has done its work.
Its not an issue but maybe you should know
18:45:04: WARNING: Assignment to undeclared global "trustedusers" inside a function at ...etest\bin..\mods\Map_Modpack\mg_villages/protection.lua:47. 18:45:04: WARNING: Assignment to undeclared global "trustedUser" inside a function at ...etest\bin..\mods\Map_Modpack\mg_villages/protection.lua:48.
And a question Rivers covers villages while using valleys_mapgen. Maybe there is a way to avoid placing villages from water_source or flowing.