|
@@ -301,6 +301,15 @@ local rope_bottom_def = {
|
|
|
after_destruct = function(pos)
|
|
|
ropes.hanging_after_destruct(pos, "ropes:rope_top", "ropes:rope", "ropes:rope_bottom")
|
|
|
end,
|
|
|
+
|
|
|
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
|
|
+ -- sometimes it just stops, tug on the end to restart the timer
|
|
|
+ local timer = minetest.get_node_timer(pos)
|
|
|
+ if timer:get_timeout() == 0 then
|
|
|
+ -- timer is stopped, start it again
|
|
|
+ timer:start(1)
|
|
|
+ end
|
|
|
+ end,
|
|
|
}
|
|
|
|
|
|
minetest.register_node("ropes:rope", rope_def)
|