Properly package index on FMLLoadCompleteEenet

This commit is contained in:
bigguy345 committed 2025-12-22 21:04:59 +02:00
1 parent 242d9fa1cb
commit a77b550b21
4 files changed
+72 -22

No files matched your search

@@ -123,6 +123,7 @@ import noppes.npcs.client.gui.roles.GuiNpcTransporter;
import noppes.npcs.client.gui.script.GuiScriptBlock;
import noppes.npcs.client.gui.script.GuiScriptGlobal;
import noppes.npcs.client.gui.script.GuiScriptItem;
import noppes.npcs.client.gui.util.script.PackageFinder;
import noppes.npcs.client.model.ModelNPCGolem;
import noppes.npcs.client.model.ModelNpcCrystal;
import noppes.npcs.client.model.ModelNpcDragon;
@@ -735,6 +736,13 @@ public class ClientProxy extends CommonProxy {
return Minecraft.getMinecraft().currentScreen != null;
}
public void buildPackageIndex() {
try {
PackageFinder.init(Thread.currentThread().getContextClassLoader());
} catch (IOException e) {
}
}
public static class FontContainer {
public StringCache textFont = null;
public boolean useCustomFont = true;