mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 09:50:19 +01:00
Let things fall behind movestones (#421)
* Let things fall behind movestones
This commit is contained in:
parent
a234006592
commit
f61b1affea
@ -60,9 +60,7 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
|
|||||||
minetest.get_node_timer(frontpos):start(timer_interval)
|
minetest.get_node_timer(frontpos):start(timer_interval)
|
||||||
|
|
||||||
-- ### Step 3: If sticky, pull stack behind ###
|
-- ### Step 3: If sticky, pull stack behind ###
|
||||||
if not is_sticky then
|
if is_sticky then
|
||||||
return
|
|
||||||
end
|
|
||||||
local backpos = vector.subtract(pos, direction)
|
local backpos = vector.subtract(pos, direction)
|
||||||
success, stack, oldstack = mesecon.mvps_pull_all(backpos, direction, max_pull)
|
success, stack, oldstack = mesecon.mvps_pull_all(backpos, direction, max_pull)
|
||||||
if success then
|
if success then
|
||||||
@ -70,6 +68,10 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- ### Step 4: Let things fall ###
|
||||||
|
minetest.check_for_falling(vector.add(pos, {x=0, y=1, z=0}))
|
||||||
|
end
|
||||||
|
|
||||||
def.is_ground_content = false
|
def.is_ground_content = false
|
||||||
|
|
||||||
def.mesecons = {effector = {
|
def.mesecons = {effector = {
|
||||||
|
Loading…
Reference in New Issue
Block a user