Animal Feeding Trough [Fabric | Forge | Quilt | NeoForge]

Animal Feeding Trough [Fabric | Forge | Quilt | NeoForge]

12M Downloads

[1.0.3+1.20.4-neoforge] Crash on server start - Calls client-only method

TigerWalts opened this issue ยท 1 comments

commented

The main mod class' <init> method calls it's own setupClient() method which is annotated as client-only.

@Mod(AnimalFeedingTroughMod.MOD_ID)
public class AnimalFeedingTroughModNeoForge {
public AnimalFeedingTroughModNeoForge(IEventBus modEventBus) {
modEventBus.addListener(this::setupClient);
AnimalFeedingTroughMod.onInitialize();
}
private void setup(final FMLCommonSetupEvent event) {
}
@OnlyIn(Dist.CLIENT)
private void setupClient(final FMLClientSetupEvent event) {
HandledScreens.register(AnimalFeedingTroughMod.FEEDING_TROUGH_SCREEN_HANDLER.get(), FeedingTroughScreen::new);
}
}

https://mclo.gs/QellinT

commented

I can confirm this issue, same on my server instance
hope it will be fixed soon.