mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
fixed concurrent exception thrown when removing animations from being ticked
This commit is contained in:
1 parent
59cd5b6fe6
commit
3f3700af4f
2 files changed
+12
-6
No files matched your search
@@ -167,8 +167,10 @@ public class AnimationData implements IAnimationData {
|
||||
}
|
||||
|
||||
if (CustomNpcs.proxy.hasClient() && newAnim != null) {
|
||||
CommonProxy.clientPlayingAnimations.remove(this.animation);
|
||||
CommonProxy.clientPlayingAnimations.add(newAnim);
|
||||
synchronized (CommonProxy.clientPlayingAnimations) {
|
||||
CommonProxy.clientPlayingAnimations.remove(this.animation);
|
||||
CommonProxy.clientPlayingAnimations.add(newAnim);
|
||||
}
|
||||
}
|
||||
this.animation = newAnim;
|
||||
|
||||
|
||||
Reference in new issue
Block a user