Skip to content

Commit

Permalink
Should fix #7, still needs to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoPangxie732 committed Sep 11, 2020
1 parent c8d961b commit a5b9ce8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/github/fcworkgroupmc/f2c/f2c/F2C.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import net.minecraft.client.Minecraft;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.dedicated.DedicatedServer;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
Expand All @@ -37,7 +38,7 @@ public class F2C {
public F2C() {
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
modEventBus.addListener(this::setupClient);
modEventBus.addListener(this::setupServer);
MinecraftForge.EVENT_BUS.addListener(this::setupServer);
}
private void setupClient(FMLClientSetupEvent event) {
if(Metadata.disableFabricLoader) return;
Expand Down

0 comments on commit a5b9ce8

Please sign in to comment.