Skip to content

Commit

Permalink
Fix multiframe WSprite (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
falseresync authored May 5, 2024
1 parent a496e3f commit 78a5908
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void paint(DrawContext context, int x, int y, int mouseX, int mouseY) {
if (currentFrameTime >= frameTime) {
currentFrame++;
//if we've hit the end of the animation, go back to the beginning
if (currentFrame >= frames.length - 1) {
if (currentFrame >= frames.length) {
currentFrame = 0;
}
currentFrameTime = 0;
Expand Down

0 comments on commit 78a5908

Please sign in to comment.