Reset spectated entity when leaving replay

This commit is contained in:
johni0702
2015-09-02 16:44:56 +02:00
parent c27b1a1a1e
commit 04df2ba3a0
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -478,6 +478,8 @@ public class ReplayHandler {
mc.loadWorld(null);
}
CameraEntity.spectating = null;
inReplay = false;
lastExit = System.currentTimeMillis();