From 4ca701829ee2e9a1793e830c8252b845b22d8e09 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 16 May 2022 19:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Adapt=20upstream=20breaking=20ch?= =?UTF-8?q?anges=20PR#893?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java | 4 ++-- src/main/resources/plugin.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 0c5d843..8962124 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ sourceCompatibility = 17 targetCompatibility = 17 group 'com.xtaolabs.gcauth_oauth' -version '1.1.1' +version '1.1.2' repositories { mavenCentral() diff --git a/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java b/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java index a618e4f..5c091bb 100644 --- a/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java +++ b/src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java @@ -16,7 +16,7 @@ import java.io.File; public class GCAuth_OAuth extends Plugin { @Override public void onEnable() { - String Login_Html_Path = PLUGINS_FOLDER + "/GCAuth/OAuth/login.html"; + String Login_Html_Path = PLUGIN("GCAuth/OAuth/login.html"); File Login_Html = new File(Login_Html_Path); if(!Login_Html.exists()) { Grasscutter.getLogger().warn(String.format("[GCAuth_OAuth] %s not found", Login_Html_Path)); @@ -33,7 +33,7 @@ public class GCAuth_OAuth extends Plugin { } public void loadTwitterLogin() { - String folder_name = PLUGINS_FOLDER + "/GCAuth/OAuth/"; + String folder_name = PLUGIN("GCAuth/OAuth/"); Grasscutter.setAuthenticationSystem(new GCAuthAuthenticationHandler()); HttpServer app = Grasscutter.getHttpServer(); diff --git a/src/main/resources/plugin.json b/src/main/resources/plugin.json index 44424e5..478f5d5 100644 --- a/src/main/resources/plugin.json +++ b/src/main/resources/plugin.json @@ -1,7 +1,7 @@ { "name": "GCAuth_OAuth", "description": "The in-game login system for Grasscutter is based on oauth and GCAuth.", - "version": "1.1.1", + "version": "1.1.2", "author": ["omg-xtao"], "mainClass": "com.xtaolabs.gcauth_oauth.GCAuth_OAuth" }