Fix BlockMultipart side solidity check

Override forge method for side checking, fixes torches, wires, etc. not being placed on solid micro blocks.
This commit is contained in:
MrTJP committed 2014-06-21 14:01:08 -04:00
1 parent 6f45eb8143
commit 956e3dca2d
1 file changed
+4 -1
@@ -78,6 +78,9 @@ class BlockMultipart extends Block(Material.rock)
case null => false
case tile => tile.isSolid(side)
}
override def isSideSolid(world:IBlockAccess, x:Int, y:Int, z:Int, side:ForgeDirection):Boolean =
isBlockSolid(world, x, y, z, side.ordinal())
override def onNeighborBlockChange(world:World, x:Int, y:Int, z:Int, block:Block) {
val tile = getTile(world, x, y, z)
@@ -297,4 +300,4 @@ class BlockMultipart extends Block(Material.rock)
}
override def canProvidePower = true
}
}