aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Client/Client.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 01:59:46 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-17 01:59:46 +0200
commite0e720c1b78506f1f9c00e2d275caa170becc927 (patch)
tree191fca97383d8bab709894f611607e43e0c1b760 /src/main/scala/Client/Client.scala
parent165a89af296cf4f6bff0241477fced2e66e681d4 (diff)
downloadscalevalapokalypsi-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.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)