From 7fb54cff3b2fa429d93c28c9df972a87176a9484 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 18 Jun 2023 15:59:02 -0300 Subject: [PATCH] improve text hp info when damaged --- lib_planes/utilities.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_planes/utilities.lua b/lib_planes/utilities.lua index e3aac00..cfed3c6 100644 --- a/lib_planes/utilities.lua +++ b/lib_planes/utilities.lua @@ -276,10 +276,11 @@ function airutils.testImpact(self, velocity, position) fade = 0.0, pitch = 1.0, }, true) + + airutils.setText(self, self.infotext) if self.driver_name then local player_name = self.driver_name - airutils.setText(self, self.infotext) --minetest.chat_send_all('damage: '.. damage .. ' - hp: ' .. self.hp_max) if self.hp_max < 0 then --if acumulated damage is greater than 50, adieu