From 6fcf1cf09f50311f5571752c0e74d8b178b80b91 Mon Sep 17 00:00:00 2001 From: kay27 Date: Tue, 5 Jan 2021 06:37:06 +0400 Subject: [PATCH] Make catching XP orbs easier --- mods/HUD/mcl_experience/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/HUD/mcl_experience/init.lua b/mods/HUD/mcl_experience/init.lua index f9f300069..9a8378b0c 100644 --- a/mods/HUD/mcl_experience/init.lua +++ b/mods/HUD/mcl_experience/init.lua @@ -331,8 +331,8 @@ 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 or vector.new(0, 0, 0))) - elseif distance < 0.4 then + self.object:add_velocity(vector.add(acceleration,player_velocity)) + elseif distance < 0.8 then local xp = self._xp local inv = collector:get_inventory() local candidates = {