Reset spectated entity when leaving replay
This commit is contained in:
@@ -52,7 +52,7 @@ public class CameraEntity extends EntityPlayerSP {
|
|||||||
|
|
||||||
private boolean speedup = false;
|
private boolean speedup = false;
|
||||||
|
|
||||||
private static UUID spectating;
|
public static UUID spectating;
|
||||||
|
|
||||||
public CameraEntity(Minecraft mcIn, World worldIn, NetHandlerPlayClient netHandlerPlayClient, StatFileWriter statFileWriter) {
|
public CameraEntity(Minecraft mcIn, World worldIn, NetHandlerPlayClient netHandlerPlayClient, StatFileWriter statFileWriter) {
|
||||||
super(mcIn, worldIn, netHandlerPlayClient, statFileWriter);
|
super(mcIn, worldIn, netHandlerPlayClient, statFileWriter);
|
||||||
|
|||||||
@@ -478,6 +478,8 @@ public class ReplayHandler {
|
|||||||
mc.loadWorld(null);
|
mc.loadWorld(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CameraEntity.spectating = null;
|
||||||
|
|
||||||
inReplay = false;
|
inReplay = false;
|
||||||
lastExit = System.currentTimeMillis();
|
lastExit = System.currentTimeMillis();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user