Merge pull request #54 from EoD/fix-advancements-for-new-players

fix advancement sync for new players
This commit is contained in:
mlus 2025-05-03 11:14:36 +08:00 committed by GitHub
commit dd5c9c6ae8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -389,7 +389,11 @@ public class VanillaSync {
}
}
}
if (advancements != null) {
if (!advancements.exists()) {
PlayerSync.LOGGER.warn("Advancements file for " + player_uuid + " does not exist (yet).");
}
if (advancements != null && advancements.exists()) {
PlayerSync.LOGGER.debug("Storing advancements for " + player_uuid + " from " + advancements.toPath());
advancementBytes = Files.readAllBytes(advancements.toPath());
} else {