From a51a6147d6e3eed307b805ecc84559817d7b3944 Mon Sep 17 00:00:00 2001 From: gsd Date: Fri, 20 Oct 2023 16:50:32 +0300 Subject: [PATCH] donate stats fix v1 --- src/main/java/app/entities/db/DonateStat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/app/entities/db/DonateStat.java b/src/main/java/app/entities/db/DonateStat.java index e78025b..69040c9 100644 --- a/src/main/java/app/entities/db/DonateStat.java +++ b/src/main/java/app/entities/db/DonateStat.java @@ -28,7 +28,7 @@ public class DonateStat { this.id = (int) obj[0]; this.steam2 = String.valueOf(obj[1]); this.amount = (int) obj[2]; - this.giveMethod = (VipGiveMethod) obj[4]; + this.giveMethod = VipGiveMethod.values()[(int) obj[4]]; this.reserved = String.valueOf(obj[5]); this.utime = (int) obj[6]; }