Improve harvest range of sense to 5x5x5(now working)
This commit is contained in:
parent
03f6c9e2f9
commit
8c1550e5c2
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ public class Behaviour_Sense
|
||||||
}
|
}
|
||||||
TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
|
TileEntity tTileEntity = aWorld.getTileEntity(aX, aY, aZ);
|
||||||
if ((tTileEntity instanceof ICropTile)) {
|
if ((tTileEntity instanceof ICropTile)) {
|
||||||
for (int i = -1; i < 2; i++) {
|
for (int i = -2; i < 3; i++) {
|
||||||
for (int j = -1; j < 2; j++) {
|
for (int j = -2; j < 3; j++) {
|
||||||
for (int k = -1; k < 2; 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue