ABM gets executed even if node(block) is not longer in group
If you remove a group of an node (igniter group of lava_source) and there is a abm registered to this node (fire) than the abm does trigger on this node. (burnable nodes starts burning)
example:
expected behaviour: Lava will not longer burn nodes.
real behaviour: Lava still sets nodes on fire
if you check
it shows what you expect:
(igniter is not aviable)
but the fire ABM
still gets executed
To reproduce this behaviour install test mod in attachment and place a burnable node near lava_source
example:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.override_item("default:lava_source", {
groups = {lava = 3, liquid = 2, igniter = nil, hot = 3},--remove igniter from lava source
})
expected behaviour: Lava will not longer burn nodes.
real behaviour: Lava still sets nodes on fire
if you check
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.registered_nodes["default:lava_source"].groups
it shows what you expect:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
{
liquid = 2,
lava = 3,
hot = 3
}
but the fire ABM
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_abm({
nodenames = {"group:flammable"},
neighbors = {"group:igniter"},
still gets executed
To reproduce this behaviour install test mod in attachment and place a burnable node near lava_source