Fixed Bug: #0603 - Anvil Repair of Quartz Tools

This commit is contained in:
AlgorithmX2
2014-07-12 17:57:53 -05:00
parent c0c28e6681
commit 3ec4d8495e
7 changed files with 76 additions and 13 deletions
+10 -3
View File
@@ -17,13 +17,20 @@ import appeng.util.Platform;
public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem
{
public ToolQuartzCuttingKnife(AEFeature type) {
super( ToolQuartzCuttingKnife.class, type.name() );
setfeature( EnumSet.of( type, AEFeature.QuartzKnife ) );
final AEFeature type;
public ToolQuartzCuttingKnife(AEFeature Type) {
super( ToolQuartzCuttingKnife.class, Type.name() );
setfeature( EnumSet.of( type = Type, AEFeature.QuartzKnife ) );
setMaxDamage( 50 );
setMaxStackSize( 1 );
}
public boolean getIsRepairable(ItemStack a, ItemStack b)
{
return Platform.canRepair( type, a, b );
}
@Override
public boolean isRepairable()
{