refactor: used proper method for checking requestType to ReqSegment
This commit is contained in:
parent
0c2bc6cf6a
commit
1887a2c12d
@ -18,7 +18,7 @@ public class RequestGameStateSegment implements Segment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processRequests(Packet packet, List<Event> carrier, AtomicBoolean abort) {
|
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());
|
carrier.add(parent.game.getGameStateEvent());
|
||||||
}
|
}
|
||||||
packet.clear();
|
packet.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user