Skip to content

Commit

Permalink
fix: NPE in quest barrier item tooltip handler
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Sep 23, 2023
1 parent 0df9aa3 commit 9a62de5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void load() {

@Override
public boolean canEdit() {
return self.getCanEdit(Minecraft.getInstance().player);
return Minecraft.getInstance().player != null && self.getCanEdit(Minecraft.getInstance().player);
}

@Override
Expand Down

0 comments on commit 9a62de5

Please sign in to comment.