From c9ebc2c1c70462d6b26abe249731a6ea7e5a8331 Mon Sep 17 00:00:00 2001 From: punchready Date: Thu, 3 Jun 2021 03:40:30 +0200 Subject: [PATCH] refactor: make use of new method supporting ArrayList --- .../marvelous/server/lobby/pipelining/GameStateSegment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/GameStateSegment.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/GameStateSegment.java index 5b4b71f..f24bab4 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/GameStateSegment.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/GameStateSegment.java @@ -21,7 +21,7 @@ public class GameStateSegment implements Segment { @Override public void processRequests(Packet packet, List carrier, AtomicBoolean abort) { Logger.trace("GameStateSegment received {} requests.", packet.size()); - var result = game.checkRequestsAndApply(packet.toArray(new Request[0])); + var result = game.checkRequestsAndApply(packet); Logger.trace("GameLogic generated {} events", result.map(List::size).orElse(0)); if (result.isPresent()) { Logger.trace("Result from GameLogic is present. Adding requests to carrier.");