mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Clear particles after applying snapshot in export
This commit is contained in:
1 parent
67314cd5ef
commit
5bf0a59e07
2 files changed
+8
-4
No files matched your search
@@ -366,20 +366,20 @@ public class ExportJob {
|
|||||||
private void setup(ReplayServer replayServer) {
|
private void setup(ReplayServer replayServer) {
|
||||||
Minecraft minecraft = Minecraft.getInstance();
|
Minecraft minecraft = Minecraft.getInstance();
|
||||||
|
|
||||||
// Clear particles
|
|
||||||
minecraft.particleEngine.clearParticles();
|
|
||||||
|
|
||||||
int currentTick = Math.max(0, this.settings.startTick() - 20);
|
int currentTick = Math.max(0, this.settings.startTick() - 20);
|
||||||
|
|
||||||
// Ensure replay server is paused at currentTick
|
// Ensure replay server is paused at currentTick
|
||||||
this.setServerTickAndWait(replayServer, currentTick, true);
|
this.setServerTickAndWait(replayServer, currentTick, true);
|
||||||
this.runClientTick();
|
this.runClientTick();
|
||||||
|
|
||||||
|
// Clear particles
|
||||||
|
minecraft.particleEngine.clearParticles();
|
||||||
|
|
||||||
// Advance until tick is at start
|
// Advance until tick is at start
|
||||||
while (currentTick < this.settings.startTick()) {
|
while (currentTick < this.settings.startTick()) {
|
||||||
|
currentTick += 1;
|
||||||
this.setServerTickAndWait(replayServer, currentTick, true);
|
this.setServerTickAndWait(replayServer, currentTick, true);
|
||||||
this.runClientTick();
|
this.runClientTick();
|
||||||
currentTick += 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply initial position and keyframes at start tick
|
// Apply initial position and keyframes at start tick
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package com.moulberry.flashback.mixin.visuals;
|
||||||
|
|
||||||
|
public class MixinEntityRenderer {
|
||||||
|
}
|
||||||
Reference in new issue
Block a user