[skip ci] Fixing crash
This commit is contained in:
1 parent
7102d5ed52
commit
e9fdf5d02e
9 files changed
+35
-12
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
minecraft_version=1.18.1
|
||||
yarn_mappings=1.18.1+build.7
|
||||
loader_version=0.12.5
|
||||
mod_version=1.2.1
|
||||
mod_version=1.2.2
|
||||
maven_group=io.github.darkkronicle
|
||||
archives_base_name=AdvancedChatHUD
|
||||
fabric_api_version=0.43.1+1.18
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 DarkKronicle
|
||||
* Copyright (C) 2021-2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
package io.github.darkkronicle.advancedchathud;
|
||||
|
||||
import fi.dy.masa.malilib.event.InitializationHandler;
|
||||
import io.github.darkkronicle.advancedchatcore.ModuleHandler;
|
||||
import io.github.darkkronicle.advancedchathud.tabs.MainChatTab;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
@@ -16,9 +15,6 @@ import net.fabricmc.api.Environment;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class AdvancedChatHud implements ClientModInitializer {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 DarkKronicle
|
||||
* Copyright (C) 2021-2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -32,8 +32,7 @@ public class HudInitHandler implements IInitializationHandler {
|
||||
@Override
|
||||
public void registerModHandlers() {
|
||||
AdvancedChatCore.FORWARD_TO_HUD = false;
|
||||
ConfigManager.getInstance()
|
||||
.registerConfigHandler(AdvancedChatHud.MOD_ID, new HudConfigStorage());
|
||||
ConfigManager.getInstance().registerConfigHandler(AdvancedChatHud.MOD_ID, new HudConfigStorage());
|
||||
GuiConfigHandler.getInstance().addTab(
|
||||
GuiConfigHandler.children("advancedchathud", "advancedchathud.tab.advancedchathud",
|
||||
GuiConfigHandler.wrapSaveableOptions(
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
package io.github.darkkronicle.advancedchathud;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
package io.github.darkkronicle.advancedchathud.mixin;
|
||||
|
||||
import io.github.darkkronicle.advancedchathud.AdvancedChatHud;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
package io.github.darkkronicle.advancedchathud.tabs;
|
||||
|
||||
import io.github.darkkronicle.Konstruct.NodeException;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021 DarkKronicle
|
||||
* Copyright (C) 2021-2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -85,7 +85,7 @@ public class MainChatTab extends AbstractChatTab {
|
||||
/** Method used for loading in tabs from the config. */
|
||||
public void setUpTabs() {
|
||||
JsonArray windows = null;
|
||||
if (!LOAD_ALL_JSON) {
|
||||
if (LOAD_ALL_JSON) {
|
||||
windows = WindowManager.getInstance().saveJson();
|
||||
}
|
||||
customChatTabs = new ArrayList<>();
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2022 DarkKronicle
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
package io.github.darkkronicle.advancedchathud.util;
|
||||
|
||||
import lombok.experimental.UtilityClass;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"fabric": "*",
|
||||
"minecraft": ">=1.18",
|
||||
"malilib": ">=0.10.0-dev.26",
|
||||
"advancedchatcore": ">=1.4.0-1.18"
|
||||
"advancedchatcore": ">=1.4.2-1.18"
|
||||
},
|
||||
"custom": {
|
||||
"acmodule": true,
|
||||
|
||||
Reference in new issue
Block a user