mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-03 14:38:50 +00:00
Reset entity tickCount before exporting
This commit is contained in:
1 parent
a35a80342c
commit
4a1a719c92
1 file changed
+2
-1
@@ -396,11 +396,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
|
||||||
|
|||||||
Reference in new issue
Block a user