This PR moves all of the client-specific initialisation into the onInitializeClient setup method, which fixes the server crashing on startup.
Changes:
Initialise sound system on client startup (as sounds don't exist on the server other than the server being able to instruct the client to play a sound, which doesn't seem to be being done? please correct me if i'm wrong!)
Register sleeping bag map colours only on the client-side (as they aren't needed on the server)
Move EntityRenderer initialisation into onInitializeClient. This is needed because while @Environment(EnvType.CLIENT) removes the field from the server, it doesn't remove the initialisation part of the statement – so that needs to be moved too.
This PR moves all of the client-specific initialisation into the
onInitializeClient
setup method, which fixes the server crashing on startup.Changes:
onInitializeClient
. This is needed because while@Environment(EnvType.CLIENT)
removes the field from the server, it doesn't remove the initialisation part of the statement – so that needs to be moved too.Fixes #14