diff --git a/utilities.lua b/utilities.lua index f69672c..e9d311e 100755 --- a/utilities.lua +++ b/utilities.lua @@ -239,7 +239,8 @@ function ap_airship.table_copy(table_here) return tablecopy end -local function paint(self) +local function paint(self, write_prefix) + write_prefix = write_prefix or false local l_textures = ap_airship.textures_copy() for _, texture in ipairs(l_textures) do local indx = texture:find('wool_blue.png') @@ -254,7 +255,7 @@ local function paint(self) if indx then l_textures[_] = self.logo end - if airutils._use_signs_api then + if airutils._use_signs_api and write_prefix == true then indx = texture:find('airutils_name_canvas.png') if indx then l_textures[_] = "airutils_name_canvas.png^"..airutils.convert_text_to_texture(self._ship_name, self._name_color or 0, self._name_hor_aligment or 0.8) @@ -277,7 +278,7 @@ end function ap_airship.paint(self, colstr) if colstr then self.color = colstr - paint(self) + paint(self, true) end end function ap_airship.paint2(self, colstr)