Jump to content

Recommended Posts

Posted

I tried running my mod on a server, and it crashed with this error: Attempted to load class net/minecraft/client/multiplayer/MultiPlayerGameMode for invalid dist DEDICATED_SERVER

Log:

  Reveal hidden contents

GitHub repo: https://github.com/ItamarDenkberg/All-You-Can-Eat

Posted
  On 5/22/2022 at 12:21 PM, diesieben07 said:
  • Items must not be conditionally registered. Always register all your items, regardless of config settings or other mods present.
Expand  

How do you suggest preventing an item from being in the game if a mod is not present?

Posted

Updated the repo

Log:

  Reveal hidden contents

 

Posted

Sorry, I misread FMLClientSetupEvent as common setup.

Do I just do it like this in ClientEventBusSubscriber? Because it's still not working.

@SubscribeEvent
public static void onClientSetup(FMLClientSetupEvent event) {
	event.enqueueWork(() -> {
		Sheets.addWoodType(WoodTypesInit.HAZEL);
	});
}

This is the log:

  Reveal hidden contents

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.