Skip to content

Commit 3c8f1ca

Browse files
committed
Actually fixed sweat emoticon renderer.
1 parent ea6521a commit 3c8f1ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/oxy/bascenario/screens/renderer/element/thingl/emoticon/impl/EmoticonSweatRenderer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void init() {
3434

3535
@Override
3636
public void render() {
37-
if (TimeUtils.currentTimeMillis() - this.since >= this.duration && this.opacity instanceof AnimationUtils.DummyAnimation) {
37+
if (TimeUtils.currentTimeMillis() - this.since >= this.duration && this.since != -2) {
3838
long distance = TimeUtils.currentTimeMillis() - (TimeUtils.currentTimeMillis() - this.since - this.duration);
3939

4040
this.opacity = AnimationUtils.build(800, distance, 1, 0, EasingFunction.LINEAR);
@@ -55,6 +55,6 @@ public void render() {
5555

5656
@Override
5757
public boolean finished() {
58-
return TimeUtils.currentTimeMillis() - this.since >= this.duration && this.since == -2 && !this.opacity.isRunning();
58+
return this.since == -2 && !this.opacity.isRunning();
5959
}
6060
}

0 commit comments

Comments
 (0)