The Ranger Malvegil wrote:
That's an interesting idea. So the game maintains a list of hired units. When the maximum count is reached, none can be hired anymore. If there's now the case that the units got lost somehow, the player is able to remove those from that list. If the units still exist in the world, they're just dismissed (which can determined by just looking at the list when they're loaded the next time), so that the count stays right. Is this what you mean?
For me that sounds like a potential solution, though it can be discussed whether that's worth the effort or if this has any problems, but I like it.
Yeah, that’s exactly what I meant. The only mechanical problem I can see is whether or not the mod can change the data of entities that aren’t loaded, but I assume it can do that. (I only have experience in vanilla datapacks, and we can kind of do it there, so I’d be surprised if a mod couldn’t)