fixed special handling for TC tools to allow fallback to 'normal' mode (e.g. hammers on dirt)

This commit is contained in:
Florian Nücke 2014-02-28 17:11:10 +01:00
parent c850cb52bb
commit f10ba0ed31

View File

@ -250,7 +250,7 @@ class Player(val robot: tileentity.Robot) extends EntityPlayer(robot.world, Sett
prevPosY = posY
}
val cancel = stack != null && stack.getItem.onBlockStartBreak(stack, x, y, z, this)
if (TinkersConstruct.isInfiTool(stack)) {
if (cancel && TinkersConstruct.isInfiTool(stack)) {
posY += 1.62
prevPosY = posY
return adjustedBreakTime