Jump to content

[SOLVED] [1.15.2] Serverside-only Mod


Furgl

Recommended Posts

I have a mod that can work when installed only on the server. In previous MC versions, I would use 

acceptableRemoteVersions="*"

in

@Mod

but that is not available in 1.15.2. Is there a way to do this still? Possibly something in mods.toml?

 

Without that, I can still connect to a server that has my mod with a client that doesn't have the mod, but it has a red X and states "Incompatible FML modded server. Server mod list is not compatible":

image.png.1f7d0fba44a492ff06e556d021ef863a.png

Edited by Furgl
Link to comment
Share on other sites

Awesome - adding this line to my mod's constructor worked perfectly:

//Make sure the mod being absent on the other network side does not cause the client to display the server as incompatible
ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.DISPLAYTEST, () -> Pair.of(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true));

Thank you! Sorry I didn't noticed it in the docs initially.

Link to comment
Share on other sites

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.