@@ -30,21 +30,19 @@ public static void init() {
3030 }
3131
3232 public static void loadDyes () {
33- NEURepoManager .runAsyncAfterLoad (() -> {
34- STATIC_DYES .clear ();
35- ANIMATED_DYES .clear ();
36-
37- NEURepoFile file = NEURepoManager .file ("constants/dyes.json" );
38- if (file == null ) return ;
39- try (InputStream stream = file .stream ()) {
40- Dyes dyes = Dyes .CODEC .parse (JsonOps .INSTANCE , JsonParser .parseString (new String (stream .readAllBytes ()))).getOrThrow ();
41- STATIC_DYES .putAll (dyes .staticDyes );
42- ANIMATED_DYES .putAll (dyes .animatedDyes );
43- LOGGER .info ("[Skyblocker] Successfully loaded {} static dyes and {} animated dyes from repo." , STATIC_DYES .size (), ANIMATED_DYES .size ());
44- } catch (Exception ex ) {
45- LOGGER .info ("[Skyblocker] Failed to load dyes from repo" , ex );
46- }
47- });
33+ STATIC_DYES .clear ();
34+ ANIMATED_DYES .clear ();
35+
36+ NEURepoFile file = NEURepoManager .file ("constants/dyes.json" );
37+ if (file == null ) return ;
38+ try (InputStream stream = file .stream ()) {
39+ Dyes dyes = Dyes .CODEC .parse (JsonOps .INSTANCE , JsonParser .parseString (new String (stream .readAllBytes ()))).getOrThrow ();
40+ STATIC_DYES .putAll (dyes .staticDyes );
41+ ANIMATED_DYES .putAll (dyes .animatedDyes );
42+ LOGGER .info ("[Skyblocker] Successfully loaded {} static dyes and {} animated dyes from repo." , STATIC_DYES .size (), ANIMATED_DYES .size ());
43+ } catch (Exception ex ) {
44+ LOGGER .info ("[Skyblocker] Failed to load dyes from repo" , ex );
45+ }
4846 }
4947
5048 private record Dyes (Object2ObjectMap <String , List <Integer >> animatedDyes , Map <String , Integer > staticDyes ) {
0 commit comments