diff options
Diffstat (limited to 'mesecons_pistons')
-rw-r--r-- | mesecons_pistons/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index ee7c228..b247039 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -79,7 +79,8 @@ local piston_on = function(pos, node) local dir = piston_get_direction(pistonspec.dir, node) local np = mesecon.addPosRule(pos, dir) - local success, stack, oldstack = mesecon.mvps_push(np, dir, PISTON_MAXIMUM_PUSH) + local maxpush = mesecon.setting("piston_max_push", 15) + local success, stack, oldstack = mesecon.mvps_push(np, dir, maxpush) if success then minetest.add_node(pos, {param2 = node.param2, name = pistonspec.onname}) minetest.add_node(np, {param2 = node.param2, name = pistonspec.pusher}) |