Fix path at end of replay resulting in constant reloading (fixes #56)

This commit is contained in:
Jonas Herzig
2017-08-13 12:53:44 +02:00
parent 1b9b13ee7f
commit 0c226b0236

View File

@@ -721,6 +721,9 @@ public class ReplaySender extends ChannelInboundHandlerAdapter {
}
synchronized (this) {
if (timestamp == lastTimeStamp) { // Do nothing if we're already there
return;
}
if (timestamp < lastTimeStamp) { // Restart the replay if we need to go backwards in time
hasWorldLoaded = false;
lastTimeStamp = 0;