ReplayHandler#spectateCamera() creates a new CameraEntity if the current instance is null

This commit is contained in:
CrushedPixel
2015-07-16 14:59:30 +02:00
parent 752a972ed3
commit 830087de36

View File

@@ -151,6 +151,9 @@ public class ReplayHandler {
cameraEntity.movePath(prev);
}
currentEntity = cameraEntity;
if(cameraEntity == null) {
cameraEntity = new CameraEntity(mc.theWorld);
}
mc.setRenderViewEntity(cameraEntity);
}