From ec6cb89bdb02815836b1fc15111e8900c33e2727 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 28 Oct 2023 20:27:58 +0200 Subject: [PATCH] Fix EloSchemHandler --- .../steamwar/bungeecore/network/handlers/EloSchemHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/network/handlers/EloSchemHandler.java b/src/de/steamwar/bungeecore/network/handlers/EloSchemHandler.java index 8fc3fa8d..cccf92ed 100644 --- a/src/de/steamwar/bungeecore/network/handlers/EloSchemHandler.java +++ b/src/de/steamwar/bungeecore/network/handlers/EloSchemHandler.java @@ -58,8 +58,8 @@ public class EloSchemHandler extends PacketHandler { int blueSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getBlueSchem()); int redSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getRedSchem()); - calcSchemElo(fightEndsPacket.getBlueSchem(), blueSchemElo, fightEndsPacket.getRedSchem(), blueResult); - calcSchemElo(fightEndsPacket.getRedSchem(), redSchemElo, fightEndsPacket.getBlueSchem(), 1 - blueResult); + calcSchemElo(redSchemElo, blueSchemElo, fightEndsPacket.getRedSchem(), blueResult); + calcSchemElo(blueSchemElo, redSchemElo, fightEndsPacket.getBlueSchem(), 1 - blueResult); } private void calcSchemElo(int eloSchemOwn, int eloSchemEnemy, int schemId, double result) {