mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-01 07:03:52 +01:00
Use seconds for leveldb "LastPlayed"
This commit is contained in:
parent
c202b311f1
commit
917d3f332d
@ -183,6 +183,11 @@ public class MCAFile2LevelDB implements Closeable {
|
|||||||
Long time = tag.getLong("Time");
|
Long time = tag.getLong("Time");
|
||||||
map.put("CurrentTick", new LongTag(time == null ? 0L : time));
|
map.put("CurrentTick", new LongTag(time == null ? 0L : time));
|
||||||
map.put("spawnMobs", new ByteTag((byte) 1));
|
map.put("spawnMobs", new ByteTag((byte) 1));
|
||||||
|
Long lastPlayed = tag.getLong("LastPlayed");
|
||||||
|
if (lastPlayed != null && lastPlayed > Integer.MAX_VALUE) {
|
||||||
|
lastPlayed = lastPlayed / 1000;
|
||||||
|
map.put("LastPlayed", new LongTag(lastPlayed));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
Loading…
Reference in New Issue
Block a user