Fix BusGroup.DEFAULT not being trimmed after mod loading completes, also trim mod BusGroups now too (#10721)

Saves some memory by trimming various backing collections of loaded EventBuses on the default BusGroup
This commit is contained in:
Paint_Ninja authored and GitHub committed 2025-12-02 12:17:33 -08:00
1 parent b518c804fb
commit 1b5ca64f20
4 files changed
+28 -5

No files matched your search

@@ -136,8 +136,7 @@ public class ModStateProvider implements IModStateProvider {
*
* @see ModLoadingStage#DONE
*/
public static final ModLoadingState DONE = ModLoadingState.of("DONE", ModLoadingPhase.DONE)
.withInline(ml -> BusGroup.DEFAULT.trim());
public static final ModLoadingState DONE = ModLoadingState.of("DONE", ModLoadingPhase.DONE).empty();
@Override
public List<IModLoadingState> getAllStates() {