mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-18 19:56:50 -04:00
Fix undo times being wrong.
This commit is contained in:
parent
6216b0c12b
commit
c69db96f44
@ -35,7 +35,7 @@ namespace MCGalaxy.Util {
|
||||
ChunkHeader lastChunk = default(ChunkHeader);
|
||||
|
||||
foreach (Player.UndoPos uP in buffer) {
|
||||
int timeDiff = (int)(uP.timePlaced.ToUniversalTime() - lastChunk.BaseTime).TotalSeconds;
|
||||
int timeDiff = (int)(uP.timePlaced - lastChunk.BaseTime).TotalSeconds;
|
||||
if (lastChunk.LevelName != uP.mapName || timeDiff > 65535 || lastChunk.Entries == ushort.MaxValue) {
|
||||
WriteChunkEntries(w, lastChunk.Entries, entriesPos);
|
||||
lastChunk = WriteEmptyChunk(w, uP, ref entriesPos);
|
||||
|
Loading…
x
Reference in New Issue
Block a user