Reset entity tickCount before exporting

This commit is contained in:
Moulberry committed 2024-11-18 23:34:36 +08:00
1 parent 0c80b160fd
commit 193b6ef058
1 file changed
+2 -1
@@ -397,11 +397,12 @@ public class ExportJob {
// Clear particles // Clear particles
minecraft.particleEngine.clearParticles(); minecraft.particleEngine.clearParticles();
// Reset all walk animations // Reset all walk animations & tick counts
for (Entity entity : minecraft.level.entitiesForRendering()) { for (Entity entity : minecraft.level.entitiesForRendering()) {
if (entity instanceof LivingEntity livingEntity) { if (entity instanceof LivingEntity livingEntity) {
livingEntity.walkAnimation.stop(); livingEntity.walkAnimation.stop();
} }
entity.tickCount = 0;
} }
// Advance until tick is at start // Advance until tick is at start