Skip to content

Commit 0a86a33

Browse files
committed
Custom animations loading made async
1 parent 90c4951 commit 0a86a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/eu/decentsoftware/holograms/api/animations/AnimationManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import eu.decentsoftware.holograms.api.animations.text.*;
77
import eu.decentsoftware.holograms.api.utils.Common;
88
import eu.decentsoftware.holograms.api.utils.file.FileUtils;
9+
import eu.decentsoftware.holograms.api.utils.scheduler.S;
910
import eu.decentsoftware.holograms.api.utils.tick.Ticked;
1011
import org.apache.commons.lang.Validate;
1112

@@ -46,9 +47,11 @@ public void reload() {
4647
this.registerAnimation(new BurnAnimation());
4748
this.registerAnimation(new ScrollAnimation());
4849
this.registerAnimation(new ColorsAnimation());
49-
this.loadCustomAnimations();
5050
this.step.set(0);
5151
this.register();
52+
53+
// Load custom animations asynchronously
54+
S.async(this::loadCustomAnimations);
5255
}
5356

5457
public long getStep() {

0 commit comments

Comments
 (0)