Remove more deprecated calls
This commit is contained in:
parent
ad2c5c41b3
commit
7a72464406
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user