refactor: adjusted DisconnectSegment to API changes

This commit is contained in:
Yannik Bretschneider 2021-06-07 16:45:19 +02:00
parent ad2dff3eb9
commit 0b41a9c7d8

View File

@ -30,9 +30,9 @@ public class DisconnectSegment implements Segment {
if (packet.getOrigin().type != ParticipantType.Spectator) {
if (parent.getConnection().hasPlayer1()) {
parent.generateWin(parent.getConnection().getPlayer1());
parent.triggerWin(parent.getConnection().getPlayer1());
} else if (parent.getConnection().hasPlayer2()) {
parent.generateWin(parent.getConnection().getPlayer2());
parent.triggerWin(parent.getConnection().getPlayer2());
}
}
packet.clear();