13
0
geforkt von Mirrors/Paper

Fix incorrect timestamp in region file header recalculation (#11318)

Dieser Commit ist enthalten in:
Newwind 2024-08-25 18:42:15 +01:00
Ursprung 403db04ae4
Commit acf0b2d2f1

Datei anzeigen

@ -411,7 +411,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // simply destroy the timestamp header, it's not used
+
+ for (int i = 0; i < 32 * 32; ++i) {
+ this.timestamps.put(i, calculatedOffsets[i] != 0 ? (int)System.currentTimeMillis() : 0); // write a valid timestamp for valid chunks, I do not want to find out whatever dumb program actually checks this
+ this.timestamps.put(i, calculatedOffsets[i] != 0 ? RegionFile.getTimestamp() : 0); // write a valid timestamp for valid chunks, I do not want to find out whatever dumb program actually checks this
+ }
+
+ // write new header