Fix spectating being quit on world change / respawn
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user