Fixed small bug - basic miner cant work using battery in inner slot.

This commit is contained in:
Dimach 2017-09-25 14:01:46 +03:00
parent 0836e2f819
commit 32d4998ec6

View file

@ -20,6 +20,8 @@ import net.minecraft.tileentity.TileEntity;
import java.util.ArrayList;
import static gregtech.api.enums.GT_Values.V;
public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
private static final ItemStack MINING_PIPE = GT_ModHandler.getIC2Item("miningPipe", 0);
private static final Block MINING_PIPE_BLOCK = GT_Utility.getBlockFromStack(MINING_PIPE);
@ -132,6 +134,11 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
}
}
@Override
public long maxEUStore() {
return mTier == 1 ? 4096 : V[mTier] * 64;
}
public boolean moveOneDown(IGregTechTileEntity aBaseMetaTileEntity) {
if (aBaseMetaTileEntity.getYCoord() + drillY - 1 < 0 || aBaseMetaTileEntity.getBlockOffset(0, drillY - 1, 0) == Blocks.bedrock) {
isPickingPipes = true;