mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 04:32:24 +00:00
Syntax cleanup
This commit is contained in:
1 parent
e520cc32f5
commit
240d6f988f
1 file changed
+2
-3
@@ -57,13 +57,12 @@ object MultipartGenerator
|
||||
*/
|
||||
private[multipart] def addPart(world:World, pos:BlockCoord, part:TMultiPart):TileMultipart =
|
||||
{
|
||||
var loaded = TileMultipart.getOrConvertTile2(world, pos)
|
||||
val (tile, converted) = TileMultipart.getOrConvertTile2(world, pos)
|
||||
var partTraits = traitsForPart(part, world.isRemote)
|
||||
val tile = loaded._1
|
||||
var ntile = tile
|
||||
if(ntile != null)
|
||||
{
|
||||
if(loaded._2)//perform client conversion
|
||||
if(converted)//perform client conversion
|
||||
{
|
||||
world.setBlock(pos.x, pos.y, pos.z, MultipartProxy.block.blockID, 0, 0)
|
||||
world.setBlockTileEntity(pos.x, pos.y, pos.z, ntile)
|
||||
|
||||
Reference in new issue
Block a user