Make removestone check nodes above for falling (#357)

Fixes a part of #290.
This commit is contained in:
DS 2017-10-04 00:19:09 +02:00 committed by Vitaliy
parent 1f5601661e
commit 0b3039e9a9

@ -10,6 +10,7 @@ minetest.register_node("mesecons_random:removestone", {
action_on = function (pos, node) action_on = function (pos, node)
minetest.remove_node(pos) minetest.remove_node(pos)
mesecon.on_dignode(pos, node) mesecon.on_dignode(pos, node)
minetest.check_for_falling(vector.add(pos, vector.new(0, 1, 0)))
end end
}} }}
}) })
@ -34,14 +35,7 @@ minetest.register_node("mesecons_random:ghoststone", {
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
mesecons = {conductor = { mesecons = {conductor = {
state = mesecon.state.off, state = mesecon.state.off,
rules = { --axes rules = mesecon.rules.alldirs,
{x = -1, y = 0, z = 0},
{x = 1, y = 0, z = 0},
{x = 0, y = -1, z = 0},
{x = 0, y = 1, z = 0},
{x = 0, y = 0, z = -1},
{x = 0, y = 0, z = 1},
},
onstate = "mesecons_random:ghoststone_active" onstate = "mesecons_random:ghoststone_active"
}} }}
}) })
@ -56,14 +50,7 @@ minetest.register_node("mesecons_random:ghoststone_active", {
drop = "mesecons_random:ghoststone", drop = "mesecons_random:ghoststone",
mesecons = {conductor = { mesecons = {conductor = {
state = mesecon.state.on, state = mesecon.state.on,
rules = { rules = mesecon.rules.alldirs,
{x = -1, y = 0, z = 0},
{x = 1, y = 0, z = 0},
{x = 0, y = -1, z = 0},
{x = 0, y = 1, z = 0},
{x = 0, y = 0, z = -1},
{x = 0, y = 0, z = 1},
},
offstate = "mesecons_random:ghoststone" offstate = "mesecons_random:ghoststone"
}}, }},
on_construct = function(pos) on_construct = function(pos)