From eacf7fd6cfbffef408be38f0cfa1a651ae00834c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 23 May 2023 19:52:18 +0200 Subject: [PATCH] Fix SchemElo SchemID Signed-off-by: Lixfel --- .../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 84d56af1..8fc3fa8d 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, redSchemElo, blueResult); - calcSchemElo(fightEndsPacket.getRedSchem(), redSchemElo, blueSchemElo, 1 - blueResult); + calcSchemElo(fightEndsPacket.getBlueSchem(), blueSchemElo, fightEndsPacket.getRedSchem(), blueResult); + calcSchemElo(fightEndsPacket.getRedSchem(), redSchemElo, fightEndsPacket.getBlueSchem(), 1 - blueResult); } private void calcSchemElo(int eloSchemOwn, int eloSchemEnemy, int schemId, double result) {