diff options
author | Jeija <norrepli@gmail.com> | 2012-08-12 10:57:00 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-08-12 10:57:00 +0200 |
commit | 9829abc74dcc5ce886dfd6bbb01315e874fe917e (patch) | |
tree | 28841e2f3b5dbc5cbc2bc87a1623aef63ebf9553 /mesecons_pistons/pistons_up.lua | |
parent | d72c0e6bdde1d6e9400c641a80cbc8b7b654a96b (diff) | |
download | mesecons-9829abc74dcc5ce886dfd6bbb01315e874fe917e.tar mesecons-9829abc74dcc5ce886dfd6bbb01315e874fe917e.tar.gz mesecons-9829abc74dcc5ce886dfd6bbb01315e874fe917e.tar.bz2 mesecons-9829abc74dcc5ce886dfd6bbb01315e874fe917e.tar.xz mesecons-9829abc74dcc5ce886dfd6bbb01315e874fe917e.zip |
HUGE speed improvement
Diffstat (limited to 'mesecons_pistons/pistons_up.lua')
-rw-r--r-- | mesecons_pistons/pistons_up.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_pistons/pistons_up.lua b/mesecons_pistons/pistons_up.lua index 68dee16..1d116ca 100644 --- a/mesecons_pistons/pistons_up.lua +++ b/mesecons_pistons/pistons_up.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", { description = "Piston UP", tiles = {"jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 2}, + groups = {cracky=3, mesecon_effector_on = 1, mesecon_effector_off = 1, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check @@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", { minetest.register_node("mesecons_pistons:piston_up_sticky", { description = "Sticky Piston UP", tiles = {"jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 2}, + groups = {cracky=3, mesecon_effector_on = 1, mesecon_effector_off = 1, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check |