Register fire-node overrides at start-up

This commit is contained in:
stujones11 2015-07-15 18:57:03 +01:00
parent 8f2badeec3
commit bad1452e87
2 changed files with 7 additions and 7 deletions

View File

@ -52,13 +52,11 @@ end
-- override hot nodes so they do not hurt player anywhere but mod -- override hot nodes so they do not hurt player anywhere but mod
if ARMOR_FIRE_PROTECT == true then if ARMOR_FIRE_PROTECT == true then
minetest.after(2, function()
for _, row in ipairs(ARMOR_FIRE_NODES) do for _, row in ipairs(ARMOR_FIRE_NODES) do
if minetest.registered_nodes[row[1]] then if minetest.registered_nodes[row[1]] then
minetest.override_item(row[1], {damage_per_second = 0}) minetest.override_item(row[1], {damage_per_second = 0})
end end
end end
end)
end end
local time = 0 local time = 0

View File

@ -1,4 +1,6 @@
default default
inventory_plus? inventory_plus?
unified_inventory? unified_inventory?
fire?
ethereal?
bakedclay?