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 static UUID spectating;
|
||||
public static UUID spectating;
|
||||
|
||||
public CameraEntity(Minecraft mcIn, World worldIn, NetHandlerPlayClient netHandlerPlayClient, StatFileWriter statFileWriter) {
|
||||
super(mcIn, worldIn, netHandlerPlayClient, statFileWriter);
|
||||
|
||||
@@ -478,6 +478,8 @@ public class ReplayHandler {
|
||||
mc.loadWorld(null);
|
||||
}
|
||||
|
||||
CameraEntity.spectating = null;
|
||||
|
||||
inReplay = false;
|
||||
lastExit = System.currentTimeMillis();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user