Update deprecated function names
This commit is contained in:
parent
462afd6745
commit
cfbe3e827e
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user