Fix issue with shields not disabling correctly (#10319)

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-27 17:18:06 -08:00
1 parent 384fe451fc
commit 3de4e38d10
3 files changed
+78 -2

No files matched your search

@@ -499,7 +499,7 @@ public interface IForgeItem {
* @return True if this ItemStack can disable the shield in question.
*/
default boolean canDisableShield(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) {
return this instanceof AxeItem;
return attacker.canDisableShield();
}
/**