Fixed small bug - basic miner cant work using battery in inner slot.
This commit is contained in:
parent
0836e2f819
commit
32d4998ec6
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue