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.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Client/Client.scala b/src/main/scala/Client/Client.scala
index 1c5d1b4..fc3e6b8 100644
--- a/src/main/scala/Client/Client.scala
+++ b/src/main/scala/Client/Client.scala
@@ -149,7 +149,7 @@ class Client(socket: Socket):
this.lastTurnStart = currentTimeMillis / 1000
case ServerLineState.ActionDescription =>
- if !line.isEmpty && line.head == ACTION_BLOCKING_INDICATOR then
+ if line.nonEmpty && line.head == ACTION_BLOCKING_INDICATOR then
this.canAct = false
this.displayAction(line.tail)