Skip to content

Commit 89305f0

Browse files
committed
Fix creative tab not populating items if mods added items to that tab.
1 parent 5a51e8e commit 89305f0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

loader/src/main/java/com/fox2code/foxloader/loader/ModLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import com.fox2code.foxloader.energy.FoxPowerUtils;
3131
import com.fox2code.foxloader.event.FoxLoaderEvents;
3232
import com.fox2code.foxloader.event.client.GuiScreenInitEvent;
33-
import com.fox2code.foxloader.event.interaction.PlayerAttackEntityEvent;
3433
import com.fox2code.foxloader.event.lifecycle.LifecycleStartEvent;
3534
import com.fox2code.foxloader.internal.InternalTranslateHooks;
3635
import com.fox2code.foxloader.launcher.FoxLauncher;

loader/src/main/java/com/fox2code/foxloader/registry/GameRegistry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ public static void freeze() {
311311
Item item = Items.ITEMS_LIST[i];
312312
CreativeTab creativeTab;
313313
if (item != null && (creativeTab = item.getRegisterFLTab()) != null) {
314+
creativeTab.getGlobalItemList(); // Force build tab to avoid it being empty.
314315
creativeTab.add(item);
315316
}
316317
}

0 commit comments

Comments
 (0)