Fixed another bug that prevented the mod being used on a server.