Skip to content

Commit

Permalink
Switch to common setup event for storage cell drive models
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jan 16, 2025
1 parent b9a33e6 commit c298546
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/gripe/_90/arseng/client/ArsEngClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent;
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
import net.neoforged.neoforge.client.event.RegisterColorHandlersEvent;

Expand All @@ -29,7 +29,9 @@ public ArsEngClient(IEventBus modEventBus) {
modEventBus.addListener(ArsEngClient::initBlockEntityRenderer);
}

private static void initCellModels(FMLClientSetupEvent event) {
private static void initCellModels(FMLCommonSetupEvent event) {
// Has to be done in common setup, otherwise textures are broken when first entering a world until one forces a
// resource pack reload.
event.enqueueWork(() -> {
var prefix = "block/drive/cells/";
StorageCellModels.registerModel(
Expand Down

0 comments on commit c298546

Please sign in to comment.