fix for timber changes
This commit is contained in:
parent
c397df4523
commit
e6de8921c0
2 changed files with 3 additions and 11 deletions
|
@ -220,10 +220,8 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements
|
|||
@Mod.EventHandler
|
||||
public float onBlockBreakSpeedEvent(float aDefault, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, PlayerEvent.BreakSpeed aEvent)
|
||||
{
|
||||
IToolStats tStats = getToolStats(aStack);
|
||||
float tTest = tStats == null ? aDefault : tStats.getMiningSpeed(aBlock, aMetaData, aDefault, aPlayer, aPlayer.worldObj, aX, aY, aZ);
|
||||
System.out.println("test: "+tTest+" default: "+aDefault);
|
||||
return tTest;
|
||||
IToolStats tStats = getToolStats(aStack);
|
||||
return tStats == null ? aDefault : tStats.getMiningSpeed(aBlock, aMetaData, aDefault, aPlayer, aPlayer.worldObj, aX, aY, aZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -146,15 +146,9 @@ public abstract class GT_Tool
|
|||
public float getMagicDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) {
|
||||
return aOriginalDamage;
|
||||
}
|
||||
|
||||
public float getMiningSpeed(Block aBlock, byte aMetaData)
|
||||
{
|
||||
return isMinableBlock(aBlock, aMetaData) ? 1.0F : 0.0F;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public float getMiningSpeed(Block aBlock, byte aMetaData, float aDefault, EntityPlayer aPlayer, World worldObj, int aX, int aY, int aZ) {
|
||||
return getMiningSpeed(aBlock, aMetaData);
|
||||
return aDefault;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue