🐛 Adapt upstream breaking changes PR#893

This commit is contained in:
xtaodada 2022-05-16 19:17:07 +08:00
parent 282ec1dd9a
commit 4ca701829e
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ sourceCompatibility = 17
targetCompatibility = 17
group 'com.xtaolabs.gcauth_oauth'
version '1.1.1'
version '1.1.2'
repositories {
mavenCentral()

View File

@ -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();

View File

@ -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"
}