From dc5ff374493d07d0664b7b8f03209cd4b3c6235f Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 4 Jan 2021 20:44:35 +0100 Subject: [PATCH] Fix #954 --- mods/HUD/mcl_experience/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/HUD/mcl_experience/init.lua b/mods/HUD/mcl_experience/init.lua index a443399f8..da2d11f2a 100644 --- a/mods/HUD/mcl_experience/init.lua +++ b/mods/HUD/mcl_experience/init.lua @@ -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()