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
|
||||
protected void onFormed()
|
||||
public boolean isInteriorValid(SynchronizedMatrixData structure)
|
||||
{
|
||||
for(Coord4D coord : innerNodes)
|
||||
{
|
||||
|
@ -81,14 +81,16 @@ public class MatrixUpdateProtocol extends UpdateProtocol<SynchronizedMatrixData>
|
|||
|
||||
if(tile instanceof TileEntityInductionCell)
|
||||
{
|
||||
structureFound.cells.add(coord);
|
||||
structureFound.storageCap += ((TileEntityInductionCell)tile).tier.maxEnergy;
|
||||
structure.cells.add(coord);
|
||||
structure.storageCap += ((TileEntityInductionCell)tile).tier.maxEnergy;
|
||||
}
|
||||
else if(tile instanceof TileEntityInductionProvider)
|
||||
{
|
||||
structureFound.providers.add(coord);
|
||||
structureFound.transferCap += ((TileEntityInductionProvider)tile).tier.output;
|
||||
structure.providers.add(coord);
|
||||
structure.transferCap += ((TileEntityInductionProvider)tile).tier.output;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue