We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40cd9f commit d6c09f3Copy full SHA for d6c09f3
1 file changed
src/main/java/bwapi/Unit.java
@@ -123,19 +123,19 @@ public Region getRegion() {
123
}
124
125
public int getLeft() {
126
- return unitData.positionX() - getType().dimensionLeft();
+ return position.x - getType().dimensionLeft();
127
128
129
public int getTop() {
130
- return unitData.positionY() - getType().dimensionUp();
+ return position.y - getType().dimensionUp();
131
132
133
public int getRight() {
134
- return unitData.positionX() - getType().dimensionRight();
+ return position.x - getType().dimensionRight();
135
136
137
public int getBottom() {
138
- return unitData.positionY() - getType().dimensionDown();
+ return position.y - getType().dimensionDown();
139
140
141
public int getHitPoints() {
0 commit comments