summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-08-10 20:12:53 +0200
committerJeija <norrepli@gmail.com>2012-08-10 20:12:53 +0200
commit9d52049e8314c56ab9cca0f40c796e9007080daf (patch)
treee5e16e65a0aaf45952d2adcc3a2b982ec2a801bb
parent8fa68949531430456cece238ca585dfd235ca76e (diff)
downloadmesecons-9d52049e8314c56ab9cca0f40c796e9007080daf.tar
mesecons-9d52049e8314c56ab9cca0f40c796e9007080daf.tar.gz
mesecons-9d52049e8314c56ab9cca0f40c796e9007080daf.tar.bz2
mesecons-9d52049e8314c56ab9cca0f40c796e9007080daf.tar.xz
mesecons-9d52049e8314c56ab9cca0f40c796e9007080daf.zip
Fix sticky piston duplicate bug
-rw-r--r--mesecons_pistons/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua
index f4d3985..f96830f 100644
--- a/mesecons_pistons/init.lua
+++ b/mesecons_pistons/init.lua
@@ -207,8 +207,8 @@ mesecon:register_on_signal_off(function(pos, node)
and checknode.name ~= "default:lava_flowing"
and not mesecon:is_mvps_stopper(checknode.name) then
minetest.env:set_node(pos, checknode)
- mesecon:updatenode(pos)
- --minetest.env:dig_node(pos)
+ minetest.env:remove_node(checkpos)
+ mesecon:updatenode(checkpos)
end
end
if node.name == "mesecons_pistons:piston_sticky" then
@@ -230,4 +230,4 @@ function mesecon:piston_get_direction(node)
end
dofile(minetest.get_modpath("mesecons_pistons").."/pistons_down.lua")
-dofile(minetest.get_modpath("mesecons_pistons").."/pistons_up.lua") \ No newline at end of file
+dofile(minetest.get_modpath("mesecons_pistons").."/pistons_up.lua")