aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/ymc/acron/c2s/ReqCmd.java
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-07-13 12:33:37 -0700
committerTrumeet <yuuta@yuuta.moe>2022-07-13 12:33:37 -0700
commit4ae3f798d875b473079440a31358bd16b0968f10 (patch)
tree1803ca9694f94ddf78f38b8ac20cf560d4f7ae12 /src/main/java/moe/ymc/acron/c2s/ReqCmd.java
parentd1fdb146c7ea78dbe99c38e48bf27dbe9fc5e3d0 (diff)
downloadacron-4ae3f798d875b473079440a31358bd16b0968f10.tar
acron-4ae3f798d875b473079440a31358bd16b0968f10.tar.gz
acron-4ae3f798d875b473079440a31358bd16b0968f10.tar.bz2
acron-4ae3f798d875b473079440a31358bd16b0968f10.zip
Fix default ID of ReqCmd should be -1
Signed-off-by: Trumeet <yuuta@yuuta.moe>
Diffstat (limited to 'src/main/java/moe/ymc/acron/c2s/ReqCmd.java')
-rw-r--r--src/main/java/moe/ymc/acron/c2s/ReqCmd.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/moe/ymc/acron/c2s/ReqCmd.java b/src/main/java/moe/ymc/acron/c2s/ReqCmd.java
index bcd8d48..6f34b07 100644
--- a/src/main/java/moe/ymc/acron/c2s/ReqCmd.java
+++ b/src/main/java/moe/ymc/acron/c2s/ReqCmd.java
@@ -31,7 +31,7 @@ public record ReqCmd(@SerializedName("id") int id,
final JsonObject object = json.getAsJsonObject();
final int id = object.has("id") ?
object.get("id").getAsInt() :
- 0;
+ -1;
final String cmd = object.has("cmd") ?
object.get("cmd").getAsString() :
null;