Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
🐛 Adapt upstream breaking changes PR#893
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed May 16, 2022
1 parent 282ec1d commit 4ca7018
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sourceCompatibility = 17
targetCompatibility = 17

group 'com.xtaolabs.gcauth_oauth'
version '1.1.1'
version '1.1.2'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/xtaolabs/gcauth_oauth/GCAuth_OAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
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));
Expand All @@ -33,7 +33,7 @@ public void onDisable() {
}

public void loadTwitterLogin() {
String folder_name = PLUGINS_FOLDER + "/GCAuth/OAuth/";
String folder_name = PLUGIN("GCAuth/OAuth/");
Grasscutter.setAuthenticationSystem(new GCAuthAuthenticationHandler());

HttpServer app = Grasscutter.getHttpServer();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 4ca7018

Please sign in to comment.