Sense use cost
This commit is contained in:
parent
d08d3ce564
commit
94c2d1fbfa
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ public class Behaviour_Sense
|
||||||
for (int j = -2; j < 3; j++) {
|
for (int j = -2; j < 3; j++) {
|
||||||
for (int k = -2; k < 3; k++) {
|
for (int k = -2; k < 3; k++) {
|
||||||
if ((aStack.stackSize > 0) && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) && (((ICropTile) tTileEntity).harvest(true)) && (!aPlayer.capabilities.isCreativeMode)) {
|
if ((aStack.stackSize > 0) && (((tTileEntity = aWorld.getTileEntity(aX + i, aY + j, aZ + k)) instanceof ICropTile)) && (((ICropTile) tTileEntity).harvest(true)) && (!aPlayer.capabilities.isCreativeMode)) {
|
||||||
((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts);
|
((GT_MetaGenerated_Tool) aItem).doDamage(aStack, this.mCosts/20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue