Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari023 committed Nov 30, 2023
1 parent 0ab6f3c commit 95a6057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/de/mari_023/ae2wtlib/AE2wtlibForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
@Mod.EventBusSubscriber
public class AE2wtlibForge {
private static boolean RAN_INIT = false;

public AE2wtlibForge() {
AE2wtlibConfig.init();
if (Platform.trinketsPresent())
MenuLocators.register(CurioLocator.class, CurioLocator::writeToPacket, CurioLocator::readFromPacket);
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
modEventBus.addListener((RegisterEvent event) -> {
if(RAN_INIT) return;
if (RAN_INIT)
return;
RAN_INIT = true;
AE2wtlib.registerMenus();
AE2wtlib.createItems();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Upgrade fromJson(JsonObject json) {

@Override
public Codec<Upgrade> codec() {
return null;// FIXME 1.20.2 what does this?
return null;// FIXME 1.20.2 what does this? (returning null crashes when trying to load recipes)
}

@Override
Expand Down

0 comments on commit 95a6057

Please sign in to comment.