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:
commit
da6d0640e9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue