Skip to content

Commit

Permalink
Fix (Probably) Config Entries Order
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed May 20, 2024
1 parent 42e76f0 commit 819162c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void serverJoin(ClientPlayNetworkHandler handler, PacketSender se
if (MModdingLibClient.LIBRARY_CLIENT_CONFIG.getContent().getBoolean("showMModdingLibraryClientCaches")) {
Caches.CLIENT.forEach(CacheAccess::debugCache);
}
WorldUtils.doTaskAfter(client.world, MathHelper.floorDiv(Registry.ITEM.size(), 30), ClientPendingRequestManagers.GLINT_PACK_MANAGER::send);
WorldUtils.doTaskAfter(client.world, MathHelper.floorDiv(Registry.ITEM.size(), 25), ClientPendingRequestManagers.GLINT_PACK_MANAGER::send);
}

private static void serverDisconnect(ClientPlayNetworkHandler handler, MinecraftClient client) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.jetbrains.annotations.ApiStatus;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
Expand Down Expand Up @@ -42,7 +42,7 @@ public ConfigObject getCategory(String parameter) {
}

public Map<String, Value<?>> getConfigElementsMap() {
Map<String, Value<?>> configElements = new HashMap<>();
Map<String, Value<?>> configElements = new LinkedHashMap<>();
this.jsonObject.entrySet().forEach(entry -> configElements.put(entry.getKey(), Value.fromJsonElement(entry.getValue())));
return configElements;
}
Expand Down

0 comments on commit 819162c

Please sign in to comment.