mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-20 07:47:38 +01:00
Fix animation speed
This commit is contained in:
parent
bbc08034f1
commit
c22f01c017
@ -84,7 +84,7 @@ public class AnimationRegistry implements PlaceholderFactory {
|
||||
lines.set(i, DisplayFormat.apply(lines.get(i)));
|
||||
}
|
||||
|
||||
int refreshIntervalTicks = Math.min((int) (speed * 20.0), 1);
|
||||
int refreshIntervalTicks = Math.max((int) (speed * 20.0), 1);
|
||||
animationsByFilename.put(fileName, new AnimationPlaceholder(refreshIntervalTicks, lines));
|
||||
DebugLogger.info("Successfully loaded animation \"" + fileName + "\", speed = " + speed + ".");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user