diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-17 01:59:46 +0200 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2024-11-17 01:59:46 +0200 |
commit | e0e720c1b78506f1f9c00e2d275caa170becc927 (patch) | |
tree | 191fca97383d8bab709894f611607e43e0c1b760 /src/main/scala/Client/Client.scala | |
parent | 165a89af296cf4f6bff0241477fced2e66e681d4 (diff) | |
download | scalevalapokalypsi-e0e720c1b78506f1f9c00e2d275caa170becc927.tar.gz scalevalapokalypsi-e0e720c1b78506f1f9c00e2d275caa170becc927.zip |
Bug fix: Server.Client.nextLine left newlines at starts of lines
Diffstat (limited to 'src/main/scala/Client/Client.scala')
-rw-r--r-- | src/main/scala/Client/Client.scala | 2 |
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) |