Skip to content

Commit

Permalink
Merge pull request #34 from UselessBullets/Texture-region-fix
Browse files Browse the repository at this point in the history
Update BlockCoords.java
  • Loading branch information
MartinSVK12 authored Nov 21, 2023
2 parents 7f8c3f2 + bd3acc7 commit 840e764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/turniplabs/halplibe/helper/BlockCoords.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static int[] nextCoords() {
lastX = 22;
if (++lastY > Global.TEXTURE_ATLAS_WIDTH_TILES-1) {
area = 1;
lastX = 7;
lastX = 10;
lastY = 16;
}
}
Expand All @@ -27,7 +27,7 @@ public static int[] nextCoords() {
int x = lastX;
int y = lastY;
if (++lastX > 21) {
lastX = 7;
lastX = 10;
if (++lastY > 30) {
area = 2;
lastX = 16;
Expand Down

0 comments on commit 840e764

Please sign in to comment.