We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5dfe2d commit 5002031Copy full SHA for 5002031
pom.xml
@@ -6,7 +6,7 @@
6
7
<groupId>jbwapi</groupId>
8
<artifactId>jbwapi</artifactId>
9
- <version>0.4</version>
+ <version>0.4.1</version>
10
11
<properties>
12
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
src/main/java/bwapi/Unit.java
@@ -4129,9 +4129,8 @@ public int hashCode() {
4129
void updateType(final int frame) {
4130
if (frame > lastTypeUpdate) {
4131
lastTypeUpdate = frame;
4132
- position = new Position(unitData.getPositionX(), unitData.getPositionY());
+ unitType = UnitType.idToEnum[unitData.getType()];
4133
}
4134
- unitType = UnitType.idToEnum[unitData.getType()];
4135
4136
4137
void updatePlayer(final int frame) {
0 commit comments