Skip to content

Commit

Permalink
Fix sad face appearing without holding comment tool
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Sep 12, 2023
1 parent 3a720c7 commit f96f7a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void tick(float partialTicks, float hitDistance) {
Optional<Vec3> clipPos = blockHitArea.clip(pickStart, pickEnd);
boolean isPicked = clipPos.isPresent() && clipPos.get().distanceToSqr(pickStart) < vanillaDistSqr;
for (CommentEntry comment : blockData.getValue()) {
boolean isVisible = comment.messageType >= 4
boolean isVisible = (comment.messageType - 1) >= 4
|| minecraft.player.getMainHandItem().is(Main.ITEM_COMMENT_TOOL.get());
if (isVisible) {
visibleComments.computeIfAbsent(comment.location, ignored -> new ArrayList<>()).add(comment);
Expand Down

0 comments on commit f96f7a1

Please sign in to comment.