Fix canApplyAtEnchantingTable null pointer, Closes #9956

Bump SecureModules for package info and multi-release jar fixes.
This commit is contained in:
LexManos committed 2024-05-03 14:10:17 -07:00
1 parent 0467d71466
commit 0e829630da
3 files changed
+5 -5

No files matched your search

@@ -39,7 +39,7 @@ public interface IForgeEnchantment {
* This applies specifically to applying at the enchanting table. The other method {@link #canEnchant(ItemStack)}
* applies for <i>all possible</i> enchantments.
*/
default boolean canApplyAtEnchatingTable(ItemStack stack) {
return stack.canApplyAtEnchantingTable(null);
default boolean canApplyAtEnchantingTable(ItemStack stack) {
return stack.canApplyAtEnchantingTable(self());
}
}