refactor: adjusted DisconnectSegment to API changes
This commit is contained in:
parent
ad2dff3eb9
commit
0b41a9c7d8
@ -30,9 +30,9 @@ public class DisconnectSegment implements Segment {
|
|||||||
|
|
||||||
if (packet.getOrigin().type != ParticipantType.Spectator) {
|
if (packet.getOrigin().type != ParticipantType.Spectator) {
|
||||||
if (parent.getConnection().hasPlayer1()) {
|
if (parent.getConnection().hasPlayer1()) {
|
||||||
parent.generateWin(parent.getConnection().getPlayer1());
|
parent.triggerWin(parent.getConnection().getPlayer1());
|
||||||
} else if (parent.getConnection().hasPlayer2()) {
|
} else if (parent.getConnection().hasPlayer2()) {
|
||||||
parent.generateWin(parent.getConnection().getPlayer2());
|
parent.triggerWin(parent.getConnection().getPlayer2());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packet.clear();
|
packet.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user