Merge pull request #54 from EoD/fix-advancements-for-new-players
fix advancement sync for new players
This commit is contained in:
commit
dd5c9c6ae8
|
|
@ -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());
|
PlayerSync.LOGGER.debug("Storing advancements for " + player_uuid + " from " + advancements.toPath());
|
||||||
advancementBytes = Files.readAllBytes(advancements.toPath());
|
advancementBytes = Files.readAllBytes(advancements.toPath());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user