Skip to content

Commit

Permalink
Fixed animation
Browse files Browse the repository at this point in the history
  • Loading branch information
max1mde committed Aug 3, 2023
1 parent 68da91f commit a6d25e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'com.maximfiedler'
version = '1.1'
version = '1.1.1'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private BukkitRunnable animateHologram(TextHologram hologram, TextAnimation text
int currentFrame = 0;
public void run() {
if(textAnimation.getTextFrames().isEmpty()) return;
hologram.setText(textAnimation.getTextFrames().get(0));
hologram.setText(textAnimation.getTextFrames().get(currentFrame));
hologram.update();
currentFrame++;
if(currentFrame >= textAnimation.getTextFrames().size()) currentFrame = 0;
Expand Down

0 comments on commit a6d25e8

Please sign in to comment.