mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-19 20:44:10 +02:00
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
|
||||
if ARMOR_FIRE_PROTECT == true then
|
||||
minetest.after(2, function()
|
||||
for _, row in ipairs(ARMOR_FIRE_NODES) do
|
||||
if minetest.registered_nodes[row[1]] then
|
||||
minetest.override_item(row[1], {damage_per_second = 0})
|
||||
end
|
||||
for _, row in ipairs(ARMOR_FIRE_NODES) do
|
||||
if minetest.registered_nodes[row[1]] then
|
||||
minetest.override_item(row[1], {damage_per_second = 0})
|
||||
end
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
local time = 0
|
||||
|
@ -1,4 +1,6 @@
|
||||
default
|
||||
inventory_plus?
|
||||
unified_inventory?
|
||||
|
||||
fire?
|
||||
ethereal?
|
||||
bakedclay?
|
||||
|
Loading…
Reference in New Issue
Block a user