summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-12-24 18:17:16 +0600
committerilotterytea <iltsu@alright.party>2022-12-24 18:17:16 +0600
commite9deb6ea4ea61aa7aaab5102ee5efa81b2d55541 (patch)
tree7e7c4c470544eb38c840bb02bb3cf76d4a1a8124 /core
parentc6d944bc8d3c86695a25b0a19cb4ab9baf0ec694 (diff)
surely it resolves #19
Diffstat (limited to 'core')
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
index 6c9c4f1..be8482d 100644
--- a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
+++ b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
@@ -111,7 +111,7 @@ public class MovingChessBackground {
tile.setPosition(fTile.getX() - tile.getWidth(), fTile.getY());
- if (tile.getDrawable() == fTile.getDrawable()) {
+ if (array.size() > 1 && tile.getDrawable() == fTile.getDrawable()) {
tile.setDrawable(array.get(1).getDrawable());
}