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 67dcd3d commit cbcc7ebCopy full SHA for cbcc7eb
src/main/java/gregtech/api/mui/widget/FlappyGreg.java
@@ -158,12 +158,8 @@ protected void updateGregPosition() {
158
159
@SideOnly(Side.CLIENT)
160
protected void checkObstacleCollisions() {
161
- Rectangle2D.Float gregTest = new Rectangle2D.Float();
162
- gregTest.setRect(gregArea);
163
- gregTest.x += OBSTACLE_MOVEMENT_SPEED;
164
-
165
for (Rectangle2D.Float obstacle : obstacles) {
166
- if (GTUtility.rectanglesCollide(obstacle, gregTest)) {
+ if (GTUtility.rectanglesCollide(obstacle, gregArea)) {
167
gameState = GameState.COLLIDED;
168
break;
169
}
0 commit comments