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:
parent
c0de23593f
commit
be06d0df01
2 changed files with 2 additions and 2 deletions
src/main/java/net/shadow/client/feature
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue