forked from mtcontrib/3d_armor
Register fire-node overrides at start-up
This commit is contained in:
parent
8f2badeec3
commit
bad1452e87
@ -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
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
default
|
default
|
||||||
inventory_plus?
|
inventory_plus?
|
||||||
unified_inventory?
|
unified_inventory?
|
||||||
|
fire?
|
||||||
|
ethereal?
|
||||||
|
bakedclay?
|
||||||
|
Loading…
Reference in New Issue
Block a user