From 74284dde177df33a541b994e4d8e2bea94404d06 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Wed, 20 Dec 2023 19:27:59 +0400 Subject: [PATCH] lab6 some minor fixes --- src/drawing_objects/ExtensionDrawingShip.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawing_objects/ExtensionDrawingShip.java b/src/drawing_objects/ExtensionDrawingShip.java index d5f20bc..5b837ac 100644 --- a/src/drawing_objects/ExtensionDrawingShip.java +++ b/src/drawing_objects/ExtensionDrawingShip.java @@ -72,7 +72,7 @@ public class ExtensionDrawingShip { if(!(ship instanceof EntityBattleship)){ 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, ((EntityBattleship) ship).getTurret(), separatorForObject, ((EntityBattleship) ship).getRocketLauncher());