question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fabric-registry-sync cannot be skipped

See original GitHub issue

I’ve been receiving a lot of reports from players that use Fabric (Loader) to add custom blocks and items to the game that my mod has been kicking them from their servers after attempting to add my mod to their server.

My mod is designed to be a server-side only mod, and isn’t required clientside. It adds a couple of BlockEntities because BlockEntities can give blocks better interaction with less overhead than a Mixin. For example, creating a CustomChestBlockEntity.class is easier than Mixing into and causing incompatibilities in the ChestBlockEntity.class by just entirely overriding it’s functionality.

BlockEntities (in vanilla scenarios) are not synced with the client, because they’re only used on the Logical Side.

Many mods rely on Fabric (API) as a Dependency, so it is present on many Fabric servers. fabric-registry-sync-v0 runs a sync between the client and the server upon trying to connect, to gaurantee mod-version compatibility between the two. If any Block / Item / Fluid / or BlockEntity is missing, it kicks the client with a warning.

Because my mod is ServerSide only, the only real fix for this situation currently is to start requiring the mod be installed ClientSide (which I’d like to avoid). Marking Fabric-API as incompatible would be unthinkable.

There doesn’t seem to be any way to let my BlockEntities skip this sync’ing process either. From what I gather the sync’ing process only skips Vanilla Registries. If there was a way to mark a Registry Value as to be skipped, that’d be greatly appreciated.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
modmuss50commented, May 21, 2022

I did prototype an API to allow server only registry entries that arent synced to the client. At the time I couldnt find a valid usecase, it seems like I should revive that PR as its easy enough to do.

0reactions
GStefanowichcommented, May 23, 2022

Hadn’t even realized that that was a PR (It was over a year ago). Would be an awesome addition, especially since I’ve been seeing more and more “Server mods”- Not just my own mod.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Game crashes when launching the Create-Fabric mod ...
Game crashes when launching the Create-Fabric mod. Anyone knows what's wrong? ... I am using MultiMC, but it's the same with the regular...
Read more >
3.6. Fuse Fabric Red Hat JBoss Fuse 6.1 | Red Hat Customer Portal
FABRIC-1090, Ports out of sync when removing a container from fabric which has been "joined" and ... FABRIC-1068, Cannot change Fabric registry default...
Read more >
tutorial:networking [Fabric Wiki]
RuntimeException: Cannot load class net.minecraft.client. ... In your client entrypoint, you will register the receiver for your packet ...
Read more >
AverageServiceLoadScalingTrigger.UseOnlyPrimaryLoad Property ...
Fabric.Description. Assembly: System.Fabric.dll. Package: Microsoft.ServiceFabric v9.1.1390 ... This parameter cannot be set to true for stateless service.
Read more >
Install Config Sync | Anthos Config Management - Google Cloud
Error: KNV2004: unable to sync repo Error in the git-sync container. You can skip these steps if using a private GKE cluster.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found