Compare the selected warehouse by UUID in ./fill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-20 08:42:29 -04:00
1 parent 077dcc071d
commit f07f9945d7
1 file changed
+2 -1
+2 -1
View File
@@ -70,7 +70,8 @@ public class FillCmd extends AbstractDevCmd {
city = building.getCity();
if (city == null || city.warehouse == null || city.warehouse.building != building) {
if (city == null || city.warehouse == null || city.warehouse.building == null
|| city.warehouse.building.getObjectUUID() != building.getObjectUUID()) {
throwbackError(pc, "Selected warehouse is not the active warehouse of a city");
return;
}