Fix command registering

This commit is contained in:
Marcel Konrad
2020-07-01 23:51:05 +02:00
parent cdc222b1e7
commit 699f3d6edb

View File

@@ -40,7 +40,7 @@ public class WorldHandler
{
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
modEventBus.addListener(this::clientSetup);
modEventBus.addListener(this::serverStarting);
MinecraftForge.EVENT_BUS.addListener(this::serverStarting);
DistExecutor.runWhenOn(Dist.CLIENT, () -> () ->
{
SimpleReloadableResourceManager manager = (SimpleReloadableResourceManager) Minecraft.getInstance().getResourceManager();