Revert "Create indestructible nodes after all mods load"

This reverts commit 8b1de22854.
This commit is contained in:
LoneWolfHT 2021-04-06 21:37:44 -07:00
parent 6cf958800b
commit 6be1373cae

View file

@ -117,9 +117,8 @@ local function make_immortal(def)
def.description = def.description and ("Indestructible " .. def.description)
end
minetest.register_on_mods_loaded(function()
local registered_nodes = table.copy(minetest.registered_nodes)
for name, def in pairs(registered_nodes) do
local registered_nodes = table.copy(minetest.registered_nodes)
for name, def in pairs(registered_nodes) do
local mod, nodename = name:match"(..-):(.+)"
local prefix = mod_prefixes[mod]
if nodename and prefix and not (def.groups and def.groups.mortal) then
@ -134,5 +133,4 @@ minetest.register_on_mods_loaded(function()
minetest.register_alias("ctf_map:" .. nodename, new_name)
end
end
end
end)
end