This commit is contained in:
zimzaza4
2024-07-07 18:56:06 +08:00
parent 84a894535b
commit fee5d9f289

View File

@@ -245,7 +245,7 @@ public class EntityTask {
} }
}); });
if (!lastAnimProperty.equals(currentAnimProperty)) { if (ignore || !lastAnimProperty.equals(currentAnimProperty)) {
updates.put(lastAnimProperty, false); updates.put(lastAnimProperty, false);
updates.put(currentAnimProperty, true); updates.put(currentAnimProperty, true);
} }
@@ -315,7 +315,7 @@ public class EntityTask {
if (play) { if (play) {
setAnimationProperty("modelengine:anim_stop"); setAnimationProperty("modelengine:anim_stop");
model.getViewers().forEach(viewer -> updateEntityProperties(viewer, true)); model.getViewers().forEach(viewer -> updateEntityProperties(viewer, false));
currentAnimationPriority.set(p); currentAnimationPriority.set(p);
String id = "animation." + activeModel.getBlueprint().getName().toLowerCase() + "." + animationProperty.getName().toLowerCase(); String id = "animation." + activeModel.getBlueprint().getName().toLowerCase() + "." + animationProperty.getName().toLowerCase();