using move_to instead set_pos

This commit is contained in:
Alexsandro Percy 2022-01-30 21:11:40 -03:00
parent 8c148ab93f
commit 354d1a5303

View File

@ -397,7 +397,7 @@ function trike.flightstep(self)
if self.driver_name then player = minetest.get_player_by_name(self.driver_name) end if self.driver_name then player = minetest.get_player_by_name(self.driver_name) end
local curr_pos = self.object:get_pos() local curr_pos = self.object:get_pos()
self.object:set_pos(curr_pos) self.object:move_to(curr_pos)
local node_bellow = mobkit.nodeatpos(mobkit.pos_shift(curr_pos,{y=-1})) local node_bellow = mobkit.nodeatpos(mobkit.pos_shift(curr_pos,{y=-1}))
local is_flying = true local is_flying = true