Barotrauma Dedicated Server Modifications

I am trying to allow respawn in campaign mode so people don't have to wait once they die.

I have managed to find where it checks with an if statement which I commented out.

Code: Select all

if (serverSettings.AllowRespawn/* && missionAllowRespawn*/) { respawnManager = new RespawnManager(this, usingShuttle ? selectedShuttle : null); }
but when i die the server kicks me out. With an error

Code: Select all

ClientName has been kicked from the server. Reason: Missing entity Barotrauma.Networking.RespawnManager (event id 709, entity id 3760)
From what I understood the client is missing the entity. Does anyone know how entity manager works or if you could put me in the right direction in fixing this. Thank you.