fix advancement sync for new players
This commit is contained in:
parent
f43c47f78d
commit
a1d1737d04
|
|
@ -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