Hbm's Nuclear Tech Mod

Hbm's Nuclear Tech Mod

1M Downloads

Bedrock coltan ore doesn't work

TehTemmie opened this issue ยท 2 comments

commented

The mining drill is meant to extract a slow but infinite supply of coltan from bedrock coltan ore. However, after looking through the mining drill's code, it seems that it doesn't extract any coltan. The issue stems from the tryDrill() function:

if(worldObj.getBlock(x, y, z) == Blocks.air || !isMinableOreo(x, y, z))

This line ends the function if the block detected either is air or has a hardness that is not between 0 and 70. As an unbreakable block, bedrock coltan ore has a hardness of -1 and will fail this check, and any subsequent interactions, including the one that extracts coltan, are ignored.

commented

Adding an exception for IDrillInteraction-type blocks seems to fix the issue.

commented

Fixed in X4186.