mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Reset all walk animations before exporting
This commit is contained in:
1 parent
57350428e8
commit
a35a80342c
1 file changed
+8
@@ -33,6 +33,7 @@ import net.minecraft.client.resources.sounds.SimpleSoundInstance;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.sounds.SoundEvents;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import org.bytedeco.ffmpeg.global.avutil;
|
||||
import org.joml.Matrix4f;
|
||||
@@ -395,6 +396,13 @@ public class ExportJob {
|
||||
// Clear particles
|
||||
minecraft.particleEngine.clearParticles();
|
||||
|
||||
// Reset all walk animations
|
||||
for (Entity entity : minecraft.level.entitiesForRendering()) {
|
||||
if (entity instanceof LivingEntity livingEntity) {
|
||||
livingEntity.walkAnimation.stop();
|
||||
}
|
||||
}
|
||||
|
||||
// Advance until tick is at start
|
||||
while (currentTick < this.settings.startTick()) {
|
||||
currentTick += 1;
|
||||
|
||||
Reference in new issue
Block a user