Fix shield disabling being completely ignored (#10316)

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-27 15:24:30 -08:00
1 parent d55dee9394
commit 68698d70c1
4 files changed
+81 -3

No files matched your search

@@ -459,7 +459,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();
}
/**