Merge pull request #1 from PenguinDad/master

Use moveto rather than setpos for the grappling hook. This makes the mov...
This commit is contained in:
stujones11 2014-07-27 15:56:53 +01:00
commit da6d0640e9

View file

@ -52,7 +52,7 @@ minetest.register_entity("shooter:hook", {
self.object:setacceleration({x=0, y=0, z=0}) self.object:setacceleration({x=0, y=0, z=0})
if minetest.get_item_group(node.name, "liquid") == 0 and if minetest.get_item_group(node.name, "liquid") == 0 and
minetest.get_node(pos).name == "air" then minetest.get_node(pos).name == "air" then
self.player:setpos(pos) self.player:moveto(pos)
end end
if minetest.get_item_group(node.name, "lava") == 0 then if minetest.get_item_group(node.name, "lava") == 0 then
minetest.add_item(pos, self.itemstack) minetest.add_item(pos, self.itemstack)