mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Add use context and simulate flag to getToolModifiedState, enabled HOE_TILL action. (#8557)
This commit is contained in:
1 parent
94ce098056
commit
7d79f0d581
12 files changed
+268
-74
No files matched your search
@@ -64,7 +64,7 @@ public class CustomShieldTest
|
||||
@Override
|
||||
public boolean canPerformAction(ItemStack stack, ToolAction toolAction)
|
||||
{
|
||||
return toolAction.equals(ToolActions.SHIELD_BLOCK);
|
||||
return toolAction == ToolActions.SHIELD_BLOCK;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user