From 0b41a9c7d8019d9e0f984a6521310bec8e153982 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Mon, 7 Jun 2021 16:45:19 +0200 Subject: [PATCH] refactor: adjusted DisconnectSegment to API changes --- .../marvelous/server/lobby/pipelining/DisconnectSegment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java index 1aeeb32..483f63f 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobby/pipelining/DisconnectSegment.java @@ -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();