Use GameObjectType to check the ./fill target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f07f9945d7
commit
4b8430b0ba
1 file changed
+1
-1
@@ -56,7 +56,7 @@ public class FillCmd extends AbstractDevCmd {
|
||||
}
|
||||
}
|
||||
|
||||
if (!(target instanceof Building)) {
|
||||
if (target == null || target.getObjectType() != mbEnums.GameObjectType.Building) {
|
||||
throwbackError(pc, "Select a warehouse");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user