Fix deprecated API method calls

This commit is contained in:
ANAND 2019-07-05 15:48:59 +05:30
parent 1aca94fd8c
commit 85959ba913
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97
3 changed files with 6 additions and 6 deletions

View file

@ -53,7 +53,7 @@ minetest.register_entity("shooter:arrow_entity", {
acceleration = {x=0, y=0, z=0}
end
if pos then
self.object:moveto(pos)
self.object:move_to(pos)
end
self.object:set_properties({
physical = true,
@ -186,7 +186,7 @@ for _, color in pairs(dye_basecolors) do
itemstack = "shooter:crossbow 1 "..itemstack:get_wear()
local pos = user:get_pos()
local dir = user:get_look_dir()
local yaw = user:get_look_yaw()
local yaw = user:get_look_horizontal()
if pos and dir and yaw then
pos.y = pos.y + 1.5
local obj = minetest.add_entity(pos, "shooter:arrow_entity")

View file

@ -52,7 +52,7 @@ minetest.register_tool("shooter:grenade", {
end
local pos = user:get_pos()
local dir = user:get_look_dir()
local yaw = user:get_look_yaw()
local yaw = user:get_look_horizontal()
if pos and dir then
pos.y = pos.y + 1.5
local obj = minetest.add_entity(pos, "shooter:grenade_entity")