Skip to content

Commit 5f31852

Browse files
committed
fix typo in TechTYpe::whatUses
1 parent c4f0970 commit 5f31852

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/bwapi/TechType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public boolean targetsPosition() {
223223
return (techTypeFlags[id] & TARG_POS) != 0;
224224
}
225225

226-
public List<UnitType> whatsUses() {
226+
public List<UnitType> whatUses() {
227227
return Collections.unmodifiableList(Arrays.asList(techWhatUses[id]));
228228
}
229229

src/main/java/bwapi/Unit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3703,7 +3703,7 @@ public boolean canUseTechWithOrWithoutTarget(TechType tech, boolean checkCanIssu
37033703
return false;
37043704
}
37053705
// unit check
3706-
if (tech != TechType.Burrowing && !tech.whatsUses().contains(ut)) {
3706+
if (tech != TechType.Burrowing && !tech.whatUses().contains(ut)) {
37073707
return false;
37083708
}
37093709

0 commit comments

Comments
 (0)