From 0f4d8f18e3ce39b6e581955a1177ed6e7c14a9ed Mon Sep 17 00:00:00 2001 From: PenguinDad Date: Sat, 26 Jul 2014 23:39:38 +0200 Subject: [PATCH] Use moveto rather than setpos for the grappling hook. This makes the movement while using the grappling hook look more realistic to other players. --- grapple.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grapple.lua b/grapple.lua index 246ec89..44a60b1 100644 --- a/grapple.lua +++ b/grapple.lua @@ -52,7 +52,7 @@ minetest.register_entity("shooter:hook", { self.object:setacceleration({x=0, y=0, z=0}) if minetest.get_item_group(node.name, "liquid") == 0 and minetest.get_node(pos).name == "air" then - self.player:setpos(pos) + self.player:moveto(pos) end if minetest.get_item_group(node.name, "lava") == 0 then minetest.add_item(pos, self.itemstack)