Merge pull request #1232 from Dimach/unstable-1
Fixed small bug - basic miner cant work using battery in inner slot.
This commit is contained in:
commit
471376dc70
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,8 @@ import net.minecraftforge.common.util.FakePlayer;
|
|||
|
||||
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);
|
||||
|
@ -133,6 +135,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
|
||||
|| GT_Utility.getBlockHardnessAt(aBaseMetaTileEntity.getWorld(), aBaseMetaTileEntity.getXCoord(), aBaseMetaTileEntity.getYCoord() + drillY - 1, aBaseMetaTileEntity.getZCoord()) < 0
|
||||
|
|
Loading…
Reference in a new issue