Try reintroducing dungeon LBM

It doesn't catch 100% of everything, but presumably
it catches at least some things, and has little
marginal cost on top of the ABM alone.

Players have been remarking about the fact that
dungeons sometimes initialize right before their
eyes.  LBMs SHOULD be able to fire outside of the
ABM active range, giving us a chance to catch these
a little earlier before the player is close enough to
notice...?
This commit is contained in:
Aaron Suen 2021-03-31 20:04:20 -04:00
parent c227aa99f5
commit 7e351e8a1c

View File

@ -77,6 +77,13 @@ end
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- DUNGEON MODIFIER HOOKS -- DUNGEON MODIFIER HOOKS
nodecore.register_lbm({
name = modname .. ":dungeons",
run_at_every_load = true,
nodenames = {"group:dungeon_mapgen"},
action = dungeonprocess
})
minetest.register_abm({ minetest.register_abm({
label = modname .. " dungeon cleanup", label = modname .. " dungeon cleanup",
interval = 1, interval = 1,