Wait until world has loaded when previewing a Camera Path

Clean up unused fields and thus unnecessary methods in ReplayProcess
This commit is contained in:
CrushedPixel
2015-07-17 14:35:58 +02:00
parent 83b91b7d8e
commit 33ff72b878
2 changed files with 10 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ public class TickAndRenderListener {
});
}
if(ReplayHandler.isInPath()) ReplayProcess.unblockAndTick(false);
if(ReplayHandler.isInPath()) ReplayProcess.tickReplay(false);
if(ReplayHandler.isCamera()) mc.setRenderViewEntity(ReplayHandler.getCameraEntity());
if(mc.getRenderViewEntity() != null && (mc.getRenderViewEntity() == mc.thePlayer || !mc.getRenderViewEntity().isEntityAlive())
&& ReplayHandler.getCameraEntity() != null && !ReplayHandler.isInPath()) {
@@ -71,7 +71,7 @@ public class TickAndRenderListener {
if(ReplayHandler.getCameraEntity() != null)
ReplayHandler.getCameraEntity().updateMovement();
if(ReplayHandler.isInPath()) {
ReplayProcess.unblockAndTick(true);
ReplayProcess.tickReplay(true);
} else onMouseMove(new MouseEvent());
FMLCommonHandler.instance().bus().post(new InputEvent.KeyInputEvent());