aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Client
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Client')
-rw-r--r--src/main/scala/Client/Client.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Client/Client.scala b/src/main/scala/Client/Client.scala
index 7b0f8b2..26b9264 100644
--- a/src/main/scala/Client/Client.scala
+++ b/src/main/scala/Client/Client.scala
@@ -112,7 +112,7 @@ class Client(socket: Socket):
s"\n\n${this.turnInfo}\n${this.actionGetterIndicator}"
private def displayAction(action: String): Unit =
- println(action)
+ println(s"> $action")
if this.canAct then
print(this.actionGetterIndicator)
@@ -149,7 +149,7 @@ class Client(socket: Socket):
this.lastTurnStart = currentTimeMillis / 1000
case ServerLineState.ActionDescription =>
- if line.head == ACTION_BLOCKING_INDICATOR then
+ if !line.isEmpty && line.head == ACTION_BLOCKING_INDICATOR then
this.canAct = false
this.displayAction(line.tail)