refactor: used proper method for checking requestType to ReqSegment

This commit is contained in:
Yannik Bretschneider 2021-06-01 15:28:59 +02:00
parent 0c2bc6cf6a
commit 1887a2c12d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ public class RequestGameStateSegment implements Segment {
@Override
public void processRequests(Packet packet, List<Event> carrier, AtomicBoolean abort) {
if (packet.contains(new RequestBuilder(RequestType.Req).buildGameRequest())) {
if (packet.containsRequestOfType(RequestType.Req)) {
carrier.add(parent.game.getGameStateEvent());
}
packet.clear();