Fixed Induction Matrix issue
This commit is contained in:
parent
baf3ae6f59
commit
9d43e4ab49
1 changed files with 7 additions and 5 deletions
|
@ -73,7 +73,7 @@ public class MatrixUpdateProtocol extends UpdateProtocol<SynchronizedMatrixData>
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onFormed()
|
public boolean isInteriorValid(SynchronizedMatrixData structure)
|
||||||
{
|
{
|
||||||
for(Coord4D coord : innerNodes)
|
for(Coord4D coord : innerNodes)
|
||||||
{
|
{
|
||||||
|
@ -81,14 +81,16 @@ public class MatrixUpdateProtocol extends UpdateProtocol<SynchronizedMatrixData>
|
||||||
|
|
||||||
if(tile instanceof TileEntityInductionCell)
|
if(tile instanceof TileEntityInductionCell)
|
||||||
{
|
{
|
||||||
structureFound.cells.add(coord);
|
structure.cells.add(coord);
|
||||||
structureFound.storageCap += ((TileEntityInductionCell)tile).tier.maxEnergy;
|
structure.storageCap += ((TileEntityInductionCell)tile).tier.maxEnergy;
|
||||||
}
|
}
|
||||||
else if(tile instanceof TileEntityInductionProvider)
|
else if(tile instanceof TileEntityInductionProvider)
|
||||||
{
|
{
|
||||||
structureFound.providers.add(coord);
|
structure.providers.add(coord);
|
||||||
structureFound.transferCap += ((TileEntityInductionProvider)tile).tier.output;
|
structure.transferCap += ((TileEntityInductionProvider)tile).tier.output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue