Skip to content

Commit

Permalink
crash because 2 lines needed to switch places
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyApooye committed Dec 19, 2024
1 parent cd614de commit 707ada8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ private static void allItems(CreativeModeTab.ItemDisplayParameters var0, Creativ
output.accept(BlockRegistry.INVERTED_RESISTOR);
}
public static void init() {
PlatformUtil.runWhenOn(EnvType.CLIENT, ClockworkAdditionsCLient::init);
BlockRegistry.register();
EntityRegistry.register();
BlockEntityRegistry.register();
Expand All @@ -42,7 +41,7 @@ public static Component asTranslatable(String translatable) {
return Component.translatable(translatable);
}

public static class ClockworkAdditionsCLient {
public static class ClockworkAdditionsClient {
public static void init() {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.jozufozu.flywheel.core.PartialModel;

public class PartialModelRegistry {
public static PartialModel BEARING_TOP = new PartialModel(ClockworkAdditions.asResource("block/kinetic_flap_bearing/top")),
public static final PartialModel BEARING_TOP = new PartialModel(ClockworkAdditions.asResource("block/kinetic_flap_bearing/top")),
PEDALS_BASE = new PartialModel(ClockworkAdditions.asResource("block/mechanical_pedals/block")),
PEDALS_CRANK = new PartialModel(ClockworkAdditions.asResource("block/mechanical_pedals/crank")),
PEDAL_LEFT = new PartialModel(ClockworkAdditions.asResource("block/mechanical_pedals/pedal_left")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void onInitialize() {
}

public void initClient() {
ClockworkAdditionsClient.init();
ClientEventRegistry.register();
ClockworkAdditionsCLient.init();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ public ClockworkAdditionsForge() {
TAB_REGISTER.register("general", () -> CWACreativeModeTab);
TAB_REGISTER.register(modEventBus);

ClockworkAdditions.init();
PlatformUtilImpl.runWhenOn(Dist.CLIENT, this::initClient);
ClockworkAdditions.init();

ModLoadingContext modLoadingContext = ModLoadingContext.get();
ConfigRegistryImpl.register(modLoadingContext);
}

private void initClient() {}
private void initClient() {
ClockworkAdditionsClient.init();
}
}

0 comments on commit 707ada8

Please sign in to comment.