Workaround books no longer sending change block for lecterns.

Fixes #2124.
This commit is contained in:
wizjany 2024-09-08 12:42:41 -04:00
parent 70d225ef2f
commit 2ea50689b9
No known key found for this signature in database
GPG Key ID: 1DB5861C03B76B5E

View File

@ -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;
}