Use GameObjectType to check the ./fill target

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-20 08:44:11 -04:00
1 parent f07f9945d7
commit 4b8430b0ba
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}