public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem) { if (!fail) { //Tile was mined. Update the networks NetworkCollection.OnItemPipeKill(new Point16(i, j)); } }
public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem) { if (!fail) { //Tile was mined. Update the networks var tile = Framing.GetTileSafely(i, j); var merge = JunctionMergeable.mergeTypes[tile.frameX / 18]; if ((merge & JunctionMerge.Wires_All) != 0) { NetworkCollection.OnWireKill(new Point16(i, j)); } if ((merge & JunctionMerge.Items_All) != 0) { NetworkCollection.OnItemPipeKill(new Point16(i, j)); } if ((merge & JunctionMerge.Fluids_All) != 0) { NetworkCollection.OnFluidPipeKill(new Point16(i, j)); } } }