lab6 some minor fixes

This commit is contained in:
Zakharov_Rostislav 2023-12-20 19:27:59 +04:00
parent a7d0e609db
commit 74284dde17

View File

@ -72,7 +72,7 @@ public class ExtensionDrawingShip {
if(!(ship instanceof EntityBattleship)){ if(!(ship instanceof EntityBattleship)){
return str; return str;
} }
return String.format("%s%c%s%c%b%c%b%", str, separatorForObject, return String.format("%s%c%s%c%b%c%b", str, separatorForObject,
getColorName(((EntityBattleship) ship).getAdditionalColor()), separatorForObject, getColorName(((EntityBattleship) ship).getAdditionalColor()), separatorForObject,
((EntityBattleship) ship).getTurret(), separatorForObject, ((EntityBattleship) ship).getTurret(), separatorForObject,
((EntityBattleship) ship).getRocketLauncher()); ((EntityBattleship) ship).getRocketLauncher());