From e038f807e97fd5df0ca6db3bebaf10d41b4dd2ba Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 15 Mar 2022 18:31:47 +0100 Subject: [PATCH] Hotfix FightEndsHandler --- src/de/steamwar/bungeecore/comms/handlers/FightEndsHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/comms/handlers/FightEndsHandler.java b/src/de/steamwar/bungeecore/comms/handlers/FightEndsHandler.java index 50afa5df..c71521d9 100644 --- a/src/de/steamwar/bungeecore/comms/handlers/FightEndsHandler.java +++ b/src/de/steamwar/bungeecore/comms/handlers/FightEndsHandler.java @@ -74,7 +74,7 @@ public class FightEndsHandler implements SpigotHandler { } private void calculateEloOfTeam(int schemId, int eloOwn, int eloEnemy, double result, List players, String gameMode) { - double winExpectation = 1 / (1 + Math.pow(10, (eloOwn - eloEnemy) / 600f)); + double winExpectation = 1 / (1 + Math.pow(10, (eloEnemy - eloOwn) / 600f)); SchemElo.setElo(schemId, (int) Math.round(eloOwn + K * (result - winExpectation))); for (int player : players) { int playerElo = UserElo.getEloOrDefault(player, gameMode);