Use AdvancementHolder
when hooking into other awards
This commit is contained in:
parent
95a1a21f04
commit
6cf4d7fccb
3 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ public class Integrations {
|
|||
|
||||
PlayerAdvancementsCallback.PLAYER_ADVANCEMENT_COMPLETE.register((player, advancement, criterionName) -> {
|
||||
ResourceLocation advId = new ResourceLocation("minecraft:end/enter_end_gateway");
|
||||
if (advId.equals(advancement.getId())) {
|
||||
if (advId.equals(advancement.id())) {
|
||||
player.addItem(new ItemStack(GuideBookItem.GUIDE_BOOK));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue