mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix canApplyAtEnchantingTable null pointer, Closes #9956
Bump SecureModules for package info and multi-release jar fixes.
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user