From 0a606c824970612275e744456e66b83ad03d192e Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 9 Apr 2022 21:33:57 +0200 Subject: [PATCH] Update replay stuff --- SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java b/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java index 52dcb1a..adef988 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SQLProvider.java @@ -158,10 +158,10 @@ public class SQLProvider implements Provider { }, fightID); } - private static final Statement setReplay = new Statement("UPDATE Replay SET Replay = ? WHERE FightID = ?"); + private static final Statement setReplay = new Statement("INSERT INTO Replay (FightID, Replay) SET FightID = ?, Replay = ?"); @Override public void setReplay(int fightID, InputStream data) { - setReplay.update(data, fightID); + setReplay.update(fightID, data); } private static final Statement create = new Statement("INSERT INTO FightPlayer (FightID, UserID, Team, Kit, Kills, IsOut) VALUES (?, ?, ?, ?, ?, ?)");