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();