Skip to content

Commit

Permalink
- Fix client only code cause server crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
KasumiNova committed Jun 3, 2024
1 parent 16047a3 commit e28e74b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ private static void syncConfig(boolean load)
categoryHud.setLanguageKey("forge.configgui.hud.category");
propOrder.addFirst(categoryHud.getName());

config.setCategoryPropertyOrder(categoryHudId, setupHudConfig(categoryHudId));
if (FMLCommonHandler.instance().getSide().isClient()) {
config.setCategoryPropertyOrder(categoryHudId, setupHudConfig(categoryHudId));
}

config.setCategoryPropertyOrder(CATEGORY_CLIENT, propOrder);

Expand Down

0 comments on commit e28e74b

Please sign in to comment.