Gilly7CE / Carpet-Addons-Not-Found

Addons for the Fabric Carpet mod
MIT License
6 stars 0 forks source link

Fix `spectatorPlayersUsePortals` crashing client side when running on multiplayer server #159

Closed Gilly7CE closed 1 year ago

Gilly7CE commented 1 year ago

The crash was due to the custom packet we added not being a registered packet on the client side when the mod is used in a multiplayer enviroment.

Fix is to bring in the mechanism base Carpet mod does to sync client and server side. This works for single-player, and the custom payload handler will only work for the client side in multiplayer if the client also has the mod installed. This is fine in my opinion, will just need to add a note to the release notes.

Fixes #157