Skip to content

Commit

Permalink
Merge pull request #201 from Dans-Plugins/fixing-cook-listener
Browse files Browse the repository at this point in the history
Made only edible items get assigned timestamps in the Block Cook Listener.
  • Loading branch information
dmccoystephenson authored Jun 10, 2022
2 parents 782ad85 + 0826502 commit e128653
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public BlockCookListener(LocalTimeStampService timeStampService) {

@EventHandler
public void onBlockCook(BlockCookEvent event) {
event.setResult(timeStampService.assignTimeStamp(event.getResult()));
if (event.getResult().getType().isEdible()) {
event.setResult(timeStampService.assignTimeStamp(event.getResult()));
}
}
}

0 comments on commit e128653

Please sign in to comment.