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() {