Update deprecated function names

This commit is contained in:
Wuzzy 2021-02-24 03:22:05 +01:00
parent 462afd6745
commit cfbe3e827e
3 changed files with 4 additions and 4 deletions

View File

@ -402,7 +402,7 @@ minetest.register_node(
end
-- No sleeping while moving
if vector.length(clicker:get_player_velocity()) > 0.001 then
if vector.length(clicker:get_velocity()) > 0.001 then
minetest.chat_send_player(name, minetest.colorize("#FFFF00", S("You have to stop moving before going to bed!")))
return itemstack
end

View File

@ -1067,9 +1067,9 @@ function mobs:register_mob(name, def)
if self.blinktimer > 0.2 then
self.blinktimer = 0
if self.blinkstatus then
self.object:settexturemod("")
self.object:set_texture_mod("")
else
self.object:settexturemod("^[brighten")
self.object:set_texture_mod("^[brighten")
end
self.blinkstatus = not self.blinkstatus
end

View File

@ -47,7 +47,7 @@ minetest.register_craftitem(
ent:set_velocity(
{
x = 0,
y = math.min(0, player:get_player_velocity().y),
y = math.min(0, player:get_velocity().y),
z = 0
})