Fix spectating being quit on world change / respawn

This commit is contained in:
johni0702
2015-08-19 11:31:16 +02:00
parent a9bb01be5b
commit a3d3c2dddc
5 changed files with 38 additions and 19 deletions

View File

@@ -135,18 +135,11 @@ public class ReplayHandler {
}
public static void spectateEntity(Entity e) {
if(e == null) {
spectateCamera();
}
else {
if (mc.getRenderViewEntity() != e) {
mc.setRenderViewEntity(e);
}
}
getCameraEntity().spectate(e);
}
public static void spectateCamera() {
mc.setRenderViewEntity(getCameraEntity());
spectateEntity(null);
}
public static boolean isCamera() {

View File

@@ -386,8 +386,6 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
CameraEntity cent = ReplayHandler.getCameraEntity();
cent.moveAbsolute(ppl.func_148932_c(), ppl.func_148928_d(), ppl.func_148933_e());
ReplayHandler.spectateCamera();
return null;
}
}.call();