Preserve production order identities and preflight whole placement batches

This commit is contained in:
faumaray committed 2026-12-02 22:30:07 +03:00
1 parent 4ba64f7e62
commit 2a3ec924de
16 files changed
+661 -88

No files matched your search

+2
View File
@@ -78,6 +78,8 @@ CommandStatus CommandDispatcher::apply(World& world, TrustedClient client, const
const auto& payload = std::get<LegacyCabinPayload>(command.payload);
try {
world.queue_cabin(payload.cell, payload.sawmill, payload.stonecutter);
} catch (const ProductionCapacityError&) {
return CommandStatus::Busy;
} catch (const std::invalid_argument&) {
return CommandStatus::InvalidTarget;
}