plasmid icon indicating copy to clipboard operation
plasmid copied to clipboard

Advancements broken by joining game

Open Nolij opened this issue 2 years ago • 0 comments

I recently implemented some fun advancements in to my game and noticed that they worked before joining a game, but not during the game or after it ended until I rejoined or the server restarted. I was able to band-aid fix this by putting this snippet in the addPlayer and removePlayer methods for my game: player.getAdvancementTracker().reload(gameSpace.getServer().getAdvancementLoader());

It would be ideal if there were a toggle for this advancement blocking while in game (much like there is toggles for other things such as portals) (it doesn't work for all advancement triggers at the moment, only some, so it would have to be rewritten for that anyway), however they should certainly at least work after a player leaves a game by default.

Nolij avatar Sep 25 '21 18:09 Nolij