fix advancement sync for new players

This commit is contained in:
EoD 2025-05-02 19:11:34 +00:00
parent f43c47f78d
commit a1d1737d04

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 {