Compare the selected warehouse by UUID in ./fill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
077dcc071d
commit
f07f9945d7
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user