Skip to content

Commit

Permalink
Workaround books no longer sending change block for lecterns.
Browse files Browse the repository at this point in the history
Fixes #2124.
  • Loading branch information
wizjany committed Sep 8, 2024
1 parent 70d225e commit 2ea5068
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,9 @@ public static boolean isToolApplicable(Material toolMaterial, Material targetMat
case SUSPICIOUS_GRAVEL, SUSPICIOUS_SAND -> true;
default -> false;
};
case WRITTEN_BOOK:
case WRITABLE_BOOK:
return targetMaterial == Material.LECTERN;
default:
return false;
}
Expand Down

0 comments on commit 2ea5068

Please sign in to comment.