Added optional TE wrench support. (#3145)

This commit is contained in:
fscan
2017-10-08 17:58:57 +02:00
committed by yueh
parent 644194d0d6
commit 8ad8ce68b5
5 changed files with 73 additions and 2 deletions
+5
View File
@@ -673,6 +673,11 @@ public class Platform
* return wrench.canWrench( player, x, y, z );
* }
*/
if( eq.getItem() instanceof cofh.api.item.IToolHammer )
{
return ( (cofh.api.item.IToolHammer) eq.getItem() ).isUsable( eq, player, pos );
}
}
catch( final Throwable ignore )
{ // explodes without BC