From e0e720c1b78506f1f9c00e2d275caa170becc927 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 17 Nov 2024 01:59:46 +0200 Subject: Bug fix: Server.Client.nextLine left newlines at starts of lines --- src/main/scala/Client/Client.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala/Client/Client.scala') 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) -- cgit v1.2.3