Skip to content

Commit

Permalink
Fixed crash with keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterJulsen committed Oct 12, 2024
1 parent af7f228 commit d9007d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.simibubi.create.foundation.item.TooltipHelper.Palette;

import de.mrjulsen.crn.block.AdvancedDisplayBlock;
import de.mrjulsen.crn.client.input.ModKeys;
import de.mrjulsen.crn.event.CRNClientEventsRegistryEvent;
import de.mrjulsen.crn.event.CRNEventsManager;
import de.mrjulsen.crn.event.ModClientEvents;
Expand Down Expand Up @@ -71,6 +72,10 @@ public static void load() {}

public static void init() {

CRNPlatformSpecific.registerConfig();
if (Platform.getEnv() == EnvType.CLIENT) {
ModKeys.init();
}
ModBlocks.init();
ModItems.init();
ModBlockEntities.init();
Expand All @@ -88,8 +93,6 @@ public static void init() {
ServerErrorPacket.class
));

CRNPlatformSpecific.registerConfig();

ModCommonEvents.init();
if (Platform.getEnv() == EnvType.CLIENT) {
ModClientEvents.init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import de.mrjulsen.crn.CreateRailwaysNavigator;
import de.mrjulsen.crn.client.ClientWrapper;
import de.mrjulsen.crn.client.input.ModKeys;
import de.mrjulsen.crn.config.ModClientConfig;
import de.mrjulsen.crn.data.SavedRoutesManager;
import de.mrjulsen.crn.data.navigation.ClientTrainListener;
Expand All @@ -28,7 +27,6 @@ public class ModClientEvents {
public static void init() {

ClientLifecycleEvent.CLIENT_SETUP.register((mc) -> {
ModKeys.init();
ModDisplayTags.register();
});

Expand Down

0 comments on commit d9007d8

Please sign in to comment.