From 1887a2c12d0869314f7d378297226ed09e0eb3b8 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Tue, 1 Jun 2021 15:28:59 +0200 Subject: [PATCH] refactor: used proper method for checking requestType to ReqSegment --- .../server/lobby/pipelining/RequestGameStateSegment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/RequestGameStateSegment.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/RequestGameStateSegment.java index df550bf..fbde3d7 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/RequestGameStateSegment.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/RequestGameStateSegment.java @@ -18,7 +18,7 @@ public class RequestGameStateSegment implements Segment { @Override public void processRequests(Packet packet, List carrier, AtomicBoolean abort) { - if (packet.contains(new RequestBuilder(RequestType.Req).buildGameRequest())) { + if (packet.containsRequestOfType(RequestType.Req)) { carrier.add(parent.game.getGameStateEvent()); } packet.clear();