From e26b8e3093c7ce17b365cfdb179e088054a3738d Mon Sep 17 00:00:00 2001 From: Trumeet Date: Wed, 13 Jul 2022 12:34:10 -0700 Subject: Fix ID not working in ReqSetConfig Signed-off-by: Trumeet --- src/main/java/moe/ymc/acron/c2s/ReqSetConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/moe/ymc/acron/c2s/ReqSetConfig.java b/src/main/java/moe/ymc/acron/c2s/ReqSetConfig.java index dc2c878..0abe42a 100644 --- a/src/main/java/moe/ymc/acron/c2s/ReqSetConfig.java +++ b/src/main/java/moe/ymc/acron/c2s/ReqSetConfig.java @@ -18,7 +18,7 @@ public record ReqSetConfig(@SerializedName("id") int id, @Override public int getId() { - return 0; + return id; } public static class ReqSetConfigDeserializer implements JsonDeserializer { @@ -42,7 +42,7 @@ public record ReqSetConfig(@SerializedName("id") int id, final String name = object.has("name") ? object.get("name").getAsString() : null; - return new ReqSetConfig(-1, + return new ReqSetConfig(id, world, pos, rot, -- cgit v1.2.3