fixed painting by car painter

This commit is contained in:
Alexsandro Percy 2024-06-30 11:27:45 -03:00
parent e344bf136b
commit 0beb2b1077

View file

@ -2,7 +2,7 @@ dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "lib_planes" .. DIR_DELI
local S = airutils.S local S = airutils.S
function lib_change_color(self, colstr) local function lib_change_color(self, colstr)
airutils.param_paint(self, colstr) airutils.param_paint(self, colstr)
end end
@ -124,6 +124,8 @@ function airutils.on_activate(self, staticdata, dtime_s)
if self._flap then airutils.flap_on(self) end if self._flap then airutils.flap_on(self) end
if self._vehicle_name then airutils.setText(self, self._vehicle_name) end if self._vehicle_name then airutils.setText(self, self._vehicle_name) end
self._change_color = lib_change_color
end end
function airutils.on_step(self,dtime,colinfo) function airutils.on_step(self,dtime,colinfo)