mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-11 15:57:32 +00:00
Fix shields not working correctly. Fixes #9966
This commit is contained in:
1 file changed
+1
-1
@@ -586,7 +586,7 @@
|
||||
Item item = this.useItem.getItem();
|
||||
- return item.getUseAnimation(this.useItem) != UseAnim.BLOCK ? false : item.getUseDuration(this.useItem) - this.useItemRemaining >= 5;
|
||||
+ boolean canBlock = this.useItem.canPerformAction(net.minecraftforge.common.ToolActions.SHIELD_BLOCK);
|
||||
+ return canBlock ? false : item.getUseDuration(this.useItem) - this.useItemRemaining >= 5;
|
||||
+ return !canBlock ? false : item.getUseDuration(this.useItem) - this.useItemRemaining >= 5;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user