Skip to content

Commit

Permalink
Fix villager restock time display only works for librarians (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Oct 26, 2024
1 parent a8f4798 commit 0927682
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ public static Component getInfo(@NotNull Villager villager) {
long nextRestockTime;
long nextWorkTime;
long timeOfDay = villager.getLevel().getDayTime() % 24000;
VillagerProfession profession = villager.getVillagerData().getProfession();

if (villager.getVillagerData().getProfession() != VillagerProfession.LIBRARIAN) {
if (profession == VillagerProfession.NONE || profession == VillagerProfession.NITWIT) {
return null;
}

Expand Down

0 comments on commit 0927682

Please sign in to comment.