mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-22 05:02:32 +00:00
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:
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user