Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 6452882

Browse files
committed
one NPE later..
1 parent 0c81c5a commit 6452882

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2020 moehreag + Contributors
1+
Copyright (C) 2021-present moehreag + Contributors
22

33
GNU LESSER GENERAL PUBLIC LICENSE
44
Version 3, 29 June 2007

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dependencies {
5858
implementation('org.apache.logging.log4j:log4j-core:2.19.0')
5959

6060
modImplementation include("com.github.moehreag:search-in-resources:1.0.2")
61-
modImplementation include('com.github.AxolotlClient:AxolotlClient-config:dec9652cb2')
61+
modImplementation include('com.github.AxolotlClient:AxolotlClient-config:9453a14')
6262
}
6363

6464
// More hacks that make mac os work

src/main/java/io/github/axolotlclient/AxolotlClient.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public void onInitializeClient() {
6868
CONFIG.config.add(config);
6969

7070
io.github.axolotlclient.AxolotlclientConfig.AxolotlClientConfigManager.registerConfig(modid, CONFIG, configManager = new AxolotlClientConfigManager());
71-
configManager.load();
7271

7372
modules.forEach(AbstractModule::lateInit);
7473

@@ -107,6 +106,10 @@ private static void addExternalModules(){
107106
}
108107

109108
public static boolean isUsingClient(UUID uuid){
109+
if(uuid==null){
110+
return false;
111+
}
112+
110113
assert MinecraftClient.getInstance().player != null;
111114
if (uuid == MinecraftClient.getInstance().player.getUuid()){
112115
return true;

src/main/java/io/github/axolotlclient/modules/rpc/DiscordRPC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void initRPC(){
106106
Logger.info("Started RPC Core");
107107
} catch (Exception e) {
108108
if(!e.getMessage().contains("INTERNAL_ERROR")) {
109-
Logger.error("An error occured: ");
109+
Logger.error("An error occurred: ");
110110
e.printStackTrace();
111111
} else {
112112
enabled.set(false);

0 commit comments

Comments
 (0)