From a80f183a0c01e7f1e6bec7295240b2f87a5cc8b3 Mon Sep 17 00:00:00 2001 From: "Tomachi [ICHIGO]" Date: Sun, 30 Jan 2022 16:17:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20#685=20JSON=E5=BD=A2=E5=BC=8F=E3=81=A8?= =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E3=81=AB=E5=B7=AE=E7=95=B0=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java b/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java index 1ca3c6c8b..66069b299 100644 --- a/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java +++ b/src/main/java/com/jaoafa/mymaid4/event/Event_ViaVerCheck.java @@ -74,7 +74,7 @@ public void run() { return; } - String version = obj.getJSONObject(ver).getString("name"); + String version = obj.getString(ver); if (!version.equals("1.18.1")) { player.sendMessage(Component.text().append(