1
0
Fork 0
mirror of https://github.com/Miasmusa/Shadow.git synced 2025-04-22 01:03:26 -04:00

irc update + crash fix

This commit is contained in:
0x3C50 2022-04-28 03:25:05 +02:00
parent c0de23593f
commit be06d0df01
2 changed files with 2 additions and 2 deletions
src/main/java/net/shadow/client/feature
gui/clickgui
module/impl/misc

View file

@ -83,7 +83,7 @@ public class ClickGUI extends Screen implements FastTickable {
void loadConfig() {
configContainer.reload();
ClickguiConfigContainer cc = configContainer.get(ClickguiConfigContainer.class);
if (cc == null) return;
if (cc == null || cc.entries == null) return;
Map<String, CategoryDisplay> displays = new HashMap<>();
for (Element element : elements) {
if (element instanceof CategoryDisplay dd) {

View file

@ -48,7 +48,7 @@ public class IRC extends Module {
}
this.wsS = new IRCWebSocket(URI.create(ShadowAPIWrapper.BASE_WS+"/irc"),ShadowAPIWrapper.getAuthKey(),()-> {
this.wsS = null;
this.setEnabled(false);
if (this.isEnabled()) this.setEnabled(false);
});
this.wsS.connect();
}