mirror of
https://github.com/minetest-mods/magma_conduits.git
synced 2025-01-19 19:01:28 +01:00
very strange, abms don't seem to be updating node groups somehow.
This commit is contained in:
parent
03638b7b9a
commit
8cf3557f8b
14
hot_rock.lua
14
hot_rock.lua
@ -55,6 +55,7 @@ local make_heatable = function(nodename, heats_to)
|
||||
end
|
||||
|
||||
make_heatable("default:obsidian", "magma_conduits:glow_obsidian")
|
||||
|
||||
make_heatable("default:stone", "magma_conduits:hot_cobble")
|
||||
make_heatable("default:cobble", "magma_conduits:hot_cobble")
|
||||
make_heatable("default:mossycobble", "magma_conduits:hot_cobble")
|
||||
@ -74,11 +75,14 @@ minetest.register_abm{
|
||||
action = function(pos)
|
||||
local name = minetest.get_node(pos).name
|
||||
local def = minetest.registered_nodes[name]
|
||||
local target = def._magma_conduits_heats_to
|
||||
if target then
|
||||
minetest.set_node(pos, {name = target})
|
||||
else
|
||||
minetest.log("error", name .. " is in group lava_heatable but doesn't have a _magma_conduits_heats_to property defined in its definition")
|
||||
|
||||
if def.groups.lava_heatable then
|
||||
local target = def._magma_conduits_heats_to
|
||||
if target then
|
||||
minetest.set_node(pos, {name = target})
|
||||
else
|
||||
minetest.log("error", name .. " is in group lava_heatable but doesn't have a _magma_conduits_heats_to property defined in its definition")
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user