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.
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.