Trivaxy / Tiny-Item-Animations

A Minecraft mod that adds little inventory animations when picking up items.
Other
9 stars 3 forks source link

Prevent loading on Forge servers #9

Closed JulianVennen closed 2 months ago

JulianVennen commented 9 months ago

Since TIA is a client-side mod, it should not be used on servers. Installing it on a Forge server anyway currently prevents players from moving items in their inventory and spams a lot of errors. The Fabric versions do not have this problem.

This PR prevents TIA from registering its event listener on a dedicated server and also disables the server list warning if the mod is not installed in the same version on the server and client.

Here's an example log of what previously happened when running TIA on a server. This Forge documentation for sides describes the features I used.

I targeted the 1.19 branch with this PR since it seems like that is the base branch for all other versions, which should make merging these changes into all versions easier.

JulianVennen commented 2 months ago

I guess this PR is no longer relevant as this is fixed in the multiloader/1.21 and the forge branches do not appear to be maintained anymore.