Remove more deprecated calls

This commit is contained in:
oilboi 2020-05-30 03:28:29 -04:00
parent ad2c5c41b3
commit 7a72464406
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ minetest.register_on_respawnplayer(function(player)
local string_pos = mod_storage:get_string(name)
if string_pos ~= "" then
local pos = minetest.string_to_pos(string_pos)
player:setpos(pos)
player:set_pos(pos)
return(true)
end
end)

View File

@ -7,7 +7,7 @@ mobs.create_movement_functions = function(def,mob_register)
local node = minetest.get_node(pos).name
self.swimming = false
if node == "main:water" or node =="main:waterflow" then
local vel = self.object:getvelocity()
local vel = self.object:get_velocity()
local goal = 3
local acceleration = vector.new(0,goal-vel.y,0)
--jump out of the water