Fixed a problem that caused the mod to crash in a server