mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Fix #954
This commit is contained in:
parent
b0b23b7532
commit
dc5ff37449
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ local function xp_step(self, dtime)
|
|||
velocity = vector.multiply(direction,multiplier)
|
||||
goal = velocity
|
||||
acceleration = vector.new(goal.x-currentvel.x,goal.y-currentvel.y,goal.z-currentvel.z)
|
||||
self.object:add_velocity(vector.add(acceleration,player_velocity))
|
||||
self.object:add_velocity(vector.add(acceleration,player_velocity or vector.new(0, 0, 0)))
|
||||
elseif distance < 0.4 then
|
||||
local xp = self._xp
|
||||
local inv = collector:get_inventory()
|
||||
|
|
Loading…
Reference in a new issue